发布时间 :2004-12-31 00:00:00
修订时间 :2017-07-19 21:29:03

[原文]Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter.


        LinuxStat 2.3.1之前版本的lstat.cgi存在目录遍历漏洞。远程攻击者可以借助(1)..(点 点)序列或(2)template参数的绝对路径来读取任意文件。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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


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


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

- 其它链接及资源
(PATCH)  BID  11517
(UNKNOWN)  XF  linuxstat-template-directory-traversal(17833)

- 漏洞信息

中危 路径遍历
2004-12-31 00:00:00 2005-12-21 00:00:00
        LinuxStat 2.3.1之前版本的lstat.cgi存在目录遍历漏洞。远程攻击者可以借助(1)..(点 点)序列或(2)template参数的绝对路径来读取任意文件。

- 公告与补丁

        The vendor has released version 2.3.1 of the affected package to resolve this issue:
        Ryszard Pydo LinuxStat 2.0
        Ryszard Pydo LinuxStat 2.1
        Ryszard Pydo LinuxStat 2.2
        Ryszard Pydo LinuxStat 2.3

- 漏洞信息 (24703)

LinuxStat 2.x Remote Directory Traversal Vulnerability (EDBID:24703)
cgi webapps
2004-10-25 Verified
0 Anonymous
N/A [点击下载]

It is reported that LinuxStat is vulnerable to a directory traversal vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied input.

By including '../' directory traversal sequences in the affected URI argument, attackers may reportedly cause the contents of arbitrary, potentially sensitive web-server readable files to be included in the output of the requested page. The resulting information disclosure may aid malicious users in further attacks.

Versions prior to 2.3.1 are reported to be affected by this vulnerability.		

- 漏洞信息

LinuxStat lstat.cgi template Parameter Traversal Arbitrary File Access
Remote / Network Access Input Manipulation
Loss of Confidentiality
Exploit Public Vendor Verified

- 漏洞描述

LinuxStat contains a flaw that may lead to an unauthorized information disclosure. The issue is due to the template parameter of lstat.cgi not being properly validated, which allows the reading of arbitrary files, resulting in a loss of confidentiality.

- 时间线

2004-10-21 Unknow
2004-10-21 Unknow

- 解决方案

Upgrade to version 2.3.1 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround(s): 1) Block access to computer statistics. 2) If "Username/Password" access to computer statistics is being used then a change of passwords is suggested. 3) Modify the file in the lib folder by adding the following line to it: $TemplateFile =~ s/\.\.//g; The above line should be placed in the vicinity of line 270, BEFORE the following code: open (FILE, "<$TemplateFile" ) || croak "Can't open template file $TemplateFile: $! \n"; my @content = <FILE>; #load content template into memory

- 相关参考

- 漏洞作者