CVE-1999-0068
CVSS7.5
发布时间 :1997-10-19 00:00:00
修订时间 :2008-09-09 08:33:39
NMCOE    

[原文]CGI PHP mylog script allows an attacker to read any file on the target server.


[CNNVD]PHP/FI 1.0/2.0示例脚本远程读取任意文件漏洞(CNNVD-199710-017)

        
        PHP/FI 是一种CGI语言,是PHP的前身。早期版本的PHP/FI中自带了一些例程文件。
        其中某些例程文件存在安全问题,可导致本地文件泄漏。
        mylog.phtml和mlog.phtml是和早期有PHP一起发布的一个例子脚本。由于未对用户输入做充分过滤,攻击者可以利用它读取服务器上任意它有权限读取的文件。
        

- CVSS (基础分值)

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

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

cpe:/a:php:php:1.0PHP PHP_FI 1.0
cpe:/a:php:php:2.0b10PHP PHP_FI 2.0b10
cpe:/a:php:php:2.0PHP PHP_FI 2.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/713
(UNKNOWN)  BID  713
http://www.osvdb.org/3396
(UNKNOWN)  OSVDB  3396

- 漏洞信息

PHP/FI 1.0/2.0示例脚本远程读取任意文件漏洞
高危 其他
1997-10-19 00:00:00 2005-05-02 00:00:00
远程  
        
        PHP/FI 是一种CGI语言,是PHP的前身。早期版本的PHP/FI中自带了一些例程文件。
        其中某些例程文件存在安全问题,可导致本地文件泄漏。
        mylog.phtml和mlog.phtml是和早期有PHP一起发布的一个例子脚本。由于未对用户输入做充分过滤,攻击者可以利用它读取服务器上任意它有权限读取的文件。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 删除mylog.phtml和mlog.phtml。
        厂商补丁:
        PHP
        ---
        目前PHP/FI已不被支持,可以使用最新的PHP,请到厂商的主页下载:
        
        http://www.php.net

- 漏洞信息 (19553)

PHP/FI 1.0/FI 2.0/FI 2.0 b10 mylog/mlog Vulnerability (EDBID:19553)
php remote
1997-10-19 Verified
0 Bryan Berg
N/A [点击下载]
source: http://www.securityfocus.com/bid/713/info

The PHP/FI package which was originally written by Rasmus Lerdorf is an is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

Since its inception, PHP/FI has been turned over to another development team and is now known only as PHP. Certain versions of PHP/FI shipped with two flawed example script for logging examples. These scripts were mylog.html & mlog.html. in both mlog.html and mylog.html. The idea is to include a file for each type of logging stats, however, there is no escaping of slashes, so one can specify any file on the system.

The problem lies in the line:

<?include "$screen">

By exploiting this problem users can view any file on the system which the http daemon user id has access to. 

http://some.stupid.isp.net/~dumbuser/cool-logs/mlog.html?screen=[fully
qualified path to any file on the system] 		

- 漏洞信息

3396
PHP mylog.html screen Parameter Arbitrary File Access
Remote / Network Access Information Disclosure
Loss of Confidentiality Upgrade
Exploit Public Third-party Verified

- 漏洞描述

PHP/FI contains a flaw that allows a remote attacker to view arbitray files. The issue is due to the "mylog.html" sample script not sanitizing input passed to the "screen" variable. By supplying a fully qualified path and filename, the script will return the contents of the file.

- 时间线

1997-10-19 Unknow
1997-10-19 Unknow

- 解决方案

Upgrade to version 3.0 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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