vendor:
PHP
by:
SecurityFocus
7.5
CVSS
HIGH
PHP safe_mode bypass
78
CWE
Product Name: PHP
Affected Version From: PHP 4.0.0
Affected Version To: PHP 4.0.4
Patch Exists: YES
Related CWE: CVE-2001-0241
CPE: a:php:php
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux, Windows
2001
PHP safe_mode bypass
A vulnerability in PHP's safe_mode feature allows a local user to bypass the safe_mode restrictions and execute arbitrary commands with the privileges of the HTTP process UID. This is possible by uploading a malicious php script, and executing it with a custom query string. It is also possible to pass command line parameters to sendmail when safe_mode is enabled, by using the 5th argument permitted by safe_mode.
Mitigation:
The safe_mode feature should be disabled, or the 5th argument should be disabled.