vendor:
PHP
by:
Maksymilian Arciemowicz
5.5
CVSS
MEDIUM
safe_mode bypass
264
CWE
Product Name: PHP
Affected Version From: PHP 5.2.6
Affected Version To: PHP 5.2.6
Patch Exists: NO
Related CWE: N/A
CPE: a:php:php:5.2.6
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008
SecurityReason.com PHP 5.2.6 (error_log) safe_mode bypass
The main problem is between using safe_mode in global mode and declaring via php_admin_flag. When a php script is created in /www/ and an attempt is made to call ini_set("error_log", "/hack/"), a warning is generated. However, if php_admin_flag safe_mode On is used in httpd.conf, only a warning is generated and the syntax in .htaccess php_value error_log "/hack/blehx.php" is allowed and bypasses safe_mode.
Mitigation:
Ensure that the php_admin_flag safe_mode is not set to On in httpd.conf.