PHP error_log() safe mode bypass
| php-errorlog-safe-mode-bypass (27414) |
Description:
PHP could allow a remote attacker to bypass safe mode restrictions, caused by improper validation of user-supplied input by the error_log() function. A remote attacker could exploit this vulnerability using a php:// request containing directory traversal sequences (../) as a destination argument to bypass security restrictions and gain unauthorized access to arbitrary files on Web servers that are running an affected version of PHP.
Platforms Affected:
- Canonical, Ubuntu 5.04
- Canonical, Ubuntu 5.10
- Canonical, Ubuntu 6.06 LTS
- MandrakeSoft, Mandrake Linux 2006
- MandrakeSoft, Mandrake Linux 2006 X86_64
- MandrakeSoft, Mandrake Linux LE2005 X86_64
- MandrakeSoft, Mandrake Linux LE2005
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- PHP, PHP 4.0 RC1
- PHP, PHP 4.0 RC2
- PHP, PHP 4.0 Beta4
- PHP, PHP 4.0 Beta3
- PHP, PHP 4.0 Beta2
- PHP, PHP 4.0 Beta1
- PHP, PHP 4.0 Beta 4 Patch1
- PHP, PHP 4.0.0
- PHP, PHP 4.0.1
- PHP, PHP 4.0.2
- PHP, PHP 4.0.3
- PHP, PHP 4.0.4
- PHP, PHP 4.0.5
- PHP, PHP 4.0.6
- PHP, PHP 4.0.7
- PHP, PHP 4.1.0
- PHP, PHP 4.1.1
- PHP, PHP 4.1.2
- PHP, PHP 4.1.3
- PHP, PHP 4.2.0
- PHP, PHP 4.2.1
- PHP, PHP 4.2.2
- PHP, PHP 4.2.3
- PHP, PHP 4.2.4
- PHP, PHP 4.3.0
- PHP, PHP 4.3.1
- PHP, PHP 4.3.10
- PHP, PHP 4.3.11
- PHP, PHP 4.3.2
- PHP, PHP 4.3.3
- PHP, PHP 4.3.4
- PHP, PHP 4.3.5
- PHP, PHP 4.3.6
- PHP, PHP 4.3.7
- PHP, PHP 4.3.8
- PHP, PHP 4.3.9
- PHP, PHP 4.4.0
- PHP, PHP 4.4.1
- PHP, PHP 4.4.2
- PHP, PHP 5.0.0 RC3
- PHP, PHP 5.0.0 RC2
- PHP, PHP 5.0.0 RC1
- PHP, PHP 5.0.0 Beta4
- PHP, PHP 5.0.0 Beta3
- PHP, PHP 5.0.0 Beta2
- PHP, PHP 5.0.0 Beta1
- PHP, PHP 5.0.0
- PHP, PHP 5.0.1
- PHP, PHP 5.0.2
- PHP, PHP 5.0.3
- PHP, PHP 5.0.4
- PHP, PHP 5.0.5
- PHP, PHP 5.1.0
- PHP, PHP 5.1.1
- PHP, PHP 5.1.2
- PHP, PHP 5.1.3
- PHP, PHP 5.1.4
Remedy:
Upgrade to the latest version of PHP (4.4.3 or later), available from the The PHP Group Web site. See References.
Consequences:
Bypass Security
References:
- Full-Disclosure Mailing List, Sun Jun 25 2006 - 18:10:48 CDT , error_log() Safe Mode Bypass PHP 5.1.4 and 4.4.2 at http://archives.neohapsis.com/archives/fulldisclosure/2006-06/0680.html.
- The PHP Group Web site, PHP 4.4.3. Release Announcement at http://www.php.net/release_4_4_3.php.
- BID-18645: PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability
- CVE-2006-3011: The error_log function in basic_functions.c in PHP before 4.4.4 and 5.x before 5.1.5 allows local users to bypass safe mode and open_basedir restrictions via a php:// or other scheme in the third argument, which disables safe mode.
- MDKSA-2006:122: Updated php packages fix multiple vulnerabilities
- OSVDB ID: 26827: PHP error_log() Third Argument Safe Mode Bypass
- SA20818: PHP "error_log()" Safe Mode Bypass Weakness
- SA21546: PHP Multiple Vulnerabilities
- SECTRACK ID: 1016377: PHP error_log() Function Lets Users Bypass Safe Mode File Access Restrictions
- USN-320-1: PHP vulnerabilities
- USN-320-2: PHP regression
- VUPEN/ADV-2006-2523: PHP error_log() Destination Parameter Handling Safe Mode Bypass Vulnerability
Reported:
Jun 25, 2006
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
