CVE-2001-1187
CVSS7.5
发布时间 :2001-12-11 00:00:00
修订时间 :2008-09-10 15:09:52
NMCOS    

[原文]csvform.pl 0.1 allows remote attackers to execute arbitrary commands via metacharacters in the file parameter.


[CNNVD]CSVForm远程执行任意命令漏洞(CNNVD-200112-090)

        
        CSVForm是一款基于*NIX平台的Perl CGI脚本,用于把表格输入的数据格式化为逗号分割的数据,然后保存到文本文件中,一般是为了后续的数据库导入而用。
        该脚本存在一个输入验证漏洞,允许远程攻击者以Web Server身份执行任意命令。
        这是由于"csvform.pl"没有对用户的输入的'file'变量进行过滤,然后直接交给open()函数处理的结果。
        有问题的代码如下:
        sub modify_CSV
        {
        if(open(CSV,$_[0])){
         }
         else{
         goto &produce_error(
         "Can't open CSV file.\n",
         "Please, check that you have provided the cgi script with
        correct CSV file",
         " path in the HTML form.\n"
         );
         }
        
        

- CVSS (基础分值)

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

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

cpe:/a:mutasem_abudahab:csvform:0.1
cpe:/a:mutasem_abudahab:csvform_plus:1.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://online.securityfocus.com/archive/1/244908
(VENDOR_ADVISORY)  BUGTRAQ  20011211 CSVForm (Perl CGI) Remote Execution Vulnerability
http://www.iss.net/security_center/static/7692.php
(VENDOR_ADVISORY)  XF  csvform-cgi-execute-commands(7692)
http://www.securityfocus.com/bid/3668
(UNKNOWN)  BID  3668

- 漏洞信息

CSVForm远程执行任意命令漏洞
高危 输入验证
2001-12-11 00:00:00 2005-10-20 00:00:00
远程  
        
        CSVForm是一款基于*NIX平台的Perl CGI脚本,用于把表格输入的数据格式化为逗号分割的数据,然后保存到文本文件中,一般是为了后续的数据库导入而用。
        该脚本存在一个输入验证漏洞,允许远程攻击者以Web Server身份执行任意命令。
        这是由于"csvform.pl"没有对用户的输入的'file'变量进行过滤,然后直接交给open()函数处理的结果。
        有问题的代码如下:
        sub modify_CSV
        {
        if(open(CSV,$_[0])){
         }
         else{
         goto &produce_error(
         "Can't open CSV file.\n",
         "Please, check that you have provided the cgi script with
        correct CSV file",
         " path in the HTML form.\n"
         );
         }
        
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 暂时停止使用csvform.pl
        * 在脚本中指定CSV文件名,而不是由用户提供。
        * 在脚本中过滤用户输入数据中的shell元字符以及NULL字符

- 漏洞信息

14180
CSVForm csvform.pl file Parameter Arbitrary Command Execution

- 漏洞描述

Unknown or Incomplete

- 时间线

2001-12-11 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

CSVForm Remote Arbitrary Command Execution Vulnerability
Input Validation Error 3668
Yes No
2001-12-11 12:00:00 2009-07-11 09:06:00
Discovered by "Jason Gomes" <jgomes@strataone.com> and posted to the BugTraq mailing list on December 11, 2001.

- 受影响的程序版本

Mutasem Abudahab CSVFormPlus 1.0
Mutasem Abudahab CSVForm 0.1

- 漏洞讨论

CSVForm is a Perl cgi script for Linux and Unix systems used to format input from a cgi form into a comma separated value text file, commonly used for later import into a database.

CSVForm fails to properly validate user-supplied input passed as the file variable. This input is later used to open a file for writing. Maliciously formed URLs submitted to the script may contain shell commands which will be run with the privilege level of the webserver (ie, user 'nobody'). As a result, an attacker may execute arbitrary code on the vulnerable system.

- 漏洞利用

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com &lt;mailto:vuldb@securityfocus.com&gt;.

- 解决方案

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公司的相关网站