发布时间 :2001-08-22 00:00:00
修订时间 :2008-09-05 16:24:34

[原文]Directory traversal vulnerability in MIMAnet viewsrc.cgi 2.0 allows a remote attacker to read arbitrary files via a '..' (dot dot) attack in the 'loc' variable.

[CNNVD]MIMAnet viewsrc.cgi目录遍历漏洞 (CNNVD-200108-117)

        MIMAnet viewsrc.cgi 2.0版本存在目录遍历漏洞。远程攻击者可以借助'loc' 变量的'..' (点 点)攻击读取任意文件。

- CVSS (基础分值)

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

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


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


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(VENDOR_ADVISORY)  BUGTRAQ  20010523 Vulnerability in viewsrc.cgi
(UNKNOWN)  XF  viewsrc-cgi-view-files(6583)

- 漏洞信息

MIMAnet viewsrc.cgi目录遍历漏洞
中危 路径遍历
2001-08-22 00:00:00 2005-05-02 00:00:00
        MIMAnet viewsrc.cgi 2.0版本存在目录遍历漏洞。远程攻击者可以借助'loc' 变量的'..' (点 点)攻击读取任意文件。

- 公告与补丁


- 漏洞信息 (20878)

MIMAnet Source Viewer 2.0 Directory Traversal Vulnerability (EDBID:20878)
cgi remote
2001-05-23 Verified
0 joetesta
N/A [点击下载]

MIMAnet Source Viewer is a freely available CGI script which allows users to view the source code of files located elsewhere on the server.

Source Viewer accepts an argument, 'loc', which it uses as the filename when opening the requested file. Unfortunately it does not filter '..' and '/' characters, which can be misinterpreted by the script and cause files outside of the intended directory to be opened. As a result, it may be possible for attackers to view the contents of arbitrary webserver-readable files on the filesystem.

The following URL demonstrates the problem:

loc=../[any file outside restricted directory] 		

- 漏洞信息

MIMAnet viewsrc.cgi Arbitrary File Access
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

MIMAnet Source Viewer 2.0 contains a flaw that allows a remote attacker to read files outside of the web path. The issue is due to the viewsrc.cgi script not properly sanitizing user input, specifically traversal style attacks (../../) supplied via the 'loc' variable.

- 时间线

2001-05-23 2001-05-01
2001-05-23 Unknow

- 解决方案

Currently, there are no known workarounds or upgrades to correct this issue. However, Joe Testa has released a patch to address this vulnerability. Apply the following patch to viewsrc.cgi: 53a54,56 > $FORM{'loc'} =~ s/\.\.//g; > $FORM{'loc'} =~ s/\\//g; > $FORM{'loc'} =~ s/\///g; 65c68 < open (INHTML, "$predo") or die &err_loc; --- > open (INHTML, "<$predo") or die &err_loc; This patch removes any '..', '/', or '\'s present in the $FORM{'loc'} variable. It also makes the open() command safer by using the '<' read-only specifier.

- 相关参考

- 漏洞作者