PHP-Nuke admin.php3特权提升漏洞

PHP-Nuke admin.php3特权提升漏洞

漏洞ID 1105969 漏洞类型 未知
发布时间 2000-08-21 更新时间 2005-08-17
图片[1]-PHP-Nuke admin.php3特权提升漏洞-安全小百科CVE编号 CVE-2000-0745
图片[2]-PHP-Nuke admin.php3特权提升漏洞-安全小百科CNNVD-ID CNNVD-200010-111
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/20158
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200010-111
|漏洞详情
PHP-Nuke中admin.php3不能正确核实PHP-Nuke管理员密码,远程攻击者可以通过请求不指定aid或pwd参数的URL来提升特权。
|漏洞EXP
source: http://www.securityfocus.com/bid/1592/info

PHP-Nuke is a website creation/maintainence tool written in PHP3. It is possible to elevate priviliges in this system from normal user to administrator due to a flaw in authentication code. The problem occurs here:

$aid = variable holding author name, pwd = author password

$result=mysql_query("select pwd from authors where aid='$aid'");
if(!$result) {
echo "Selection from database failed!";
exit;
} else {
list($pass)=mysql_fetch_row($result);

if($pass == $pwd) {
$admintest = 1;
}
}

First off, the code checks to make sure the query passed to mysql_query is legal. There are no checks to see whether any rows are returned (whether any authors match $aid..). Then, the password given is compared to the result of the above query. If the author doesn't match, mysql_fetch_row returns FALSE. This is where the problem occurs. A NULL string is logically equal to FALSE and thus if an empty string is supplied as password, the condition tested for above (the if($pass == $pwd)) is met and admintest is set to 1 (TRUE). The user is then able to perform all administrative functions.

http://target/admin.php3?admin=any_data
|参考资料

来源:BID
名称:1592
链接:http://www.securityfocus.com/bid/1592
来源:BUGTRAQ
名称:20000821Vuln.inallsitesusingPHP-Nuke,versionslessthan3
链接:http://archives.neohapsis.com/archives/bugtraq/2000-08/0243.html
来源:OSVDB
名称:1521
链接:http://www.osvdb.org/1521

相关推荐: Apache Tomcat RealPath.JSP Malformed Request Information Disclosure Vulnerability

Apache Tomcat RealPath.JSP Malformed Request Information Disclosure Vulnerability 漏洞ID 1102051 漏洞类型 Configuration Error 发布时间 2002-…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享