CVE-2004-0542
CVSS10.0
发布时间 :2004-08-06 00:00:00
修订时间 :2008-09-05 16:38:42
NMCO    

[原文]PHP before 4.3.7 on Win32 platforms does not properly filter all shell metacharacters, which allows local or remote attackers to execute arbitrary code, overwrite files, and access internal environment variables via (1) the "%", "|", or ">" characters to the escapeshellcmd function, or (2) the "%" character to the escapeshellarg function.


[CNNVD]PHP 不能正确过滤所有shell元字符的漏洞 PHP不能正确过滤所有shell元字符漏洞(CNNVD-200408-020)

        基于Win32平台的PHP 4.3.7之前的版本不能正确过滤所有shell元字符。远程攻击者借助(1)escapeshellcmd函数的"%", "|",或 ">"字符,或(2)escapeshellarg函数的"%"字符执行任意代码,覆盖文件和访问内部环境变量。
        

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/16331
(VENDOR_ADVISORY)  XF  php-escapeshellarg-execute-command(16331)
http://www.php.net/release_4_3_7.php
(PATCH)  CONFIRM  http://www.php.net/release_4_3_7.php
http://www.idefense.com/application/poi/display?id=108
(VENDOR_ADVISORY)  MISC  http://www.idefense.com/application/poi/display?id=108

- 漏洞信息

PHP 不能正确过滤所有shell元字符的漏洞 PHP不能正确过滤所有shell元字符漏洞
危急 未知
2004-08-06 00:00:00 2006-04-07 00:00:00
远程  
        基于Win32平台的PHP 4.3.7之前的版本不能正确过滤所有shell元字符。远程攻击者借助(1)escapeshellcmd函数的"%", "|",或 ">"字符,或(2)escapeshellarg函数的"%"字符执行任意代码,覆盖文件和访问内部环境变量。
        

- 公告与补丁

        

- 漏洞信息

6710
PHP escapeshellcmd() Security Bypass
Remote / Network Access Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

PHP contains a flaw that may allow a malicious user to bypass security restriction. The issue is due to an input validation error in the escapeshellcmd() routine. The escapeshellcmd() routine fails to filter the characters "%|>", allowing a remote attacker to access environment variables, redirect output and execute arbitrary commands. The flaw will result in a loss of confidentiality and integrity.

- 时间线

2004-06-07 2004-04-05
Unknow Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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