PHP .htaccess security bypass
| php-htaccess-security-bypass (35102) |
Description:
PHP could allow a remote attacker to bypass security restrictions, caused by an error in the session_save_path() and ini_set() functions. A remote attacker could exploit this vulnerability by using directives in the .htaccess file to bypass open_basedir or safe_mode restrictions to gain unauthorized access and modify configuration settings.
*CVSS:
| Base Score: | 7 |
| Access Vector: | Remote |
| Access Complexity: | Low |
| Authentication: | Not Required |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.2 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Bypass Security
Remedy:
Upgrade to the latest version of PHP (5.2.4 or later), available from the PHP Web site. See References.
For Mac OS X:
Apply Security Update 2008-002, available from the Apple Web site. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- Apple Web site: About Security Update 2008-002.
- HPSBUX02332 SSRT080056 rev.1: HP-UX running Apache with PHP, Remote Denial of Service (DoS), Gain Extended Privileges.
- PHP Web site: PHP: Hypertext Preprocessor.
- SecurityReason Advisory, SecurityAlert : 45: PHP 5.2.3 PHP 4.4.7, htaccess safemode and open_basedir Bypass.
- SecurityReason Advisory, SecurityAlert : 47: PHP 5.2.4 mail.force_extra_parameters unsecure.
- ASA-2008-053: HP-UX Running Apache Remote Execution of Arbitrary Code (HPSBUX02308)
- ASA-2008-198: HP-UX running Apache with PHP Remote Denial of Service (DoS) Gain Extended Privileges (HPSBUX02332)
- BID-24661: PHP .Htaccess Safe_Mode and Open_Basedir Restriction-Bypass Vulnerability
- BID-25498: PHP 5.2.3 and Prior Versions Multiple Vulnerabilities
- CVE-2007-3378: The (1) session_save_path, (2) ini_set, and (3) error_log functions in PHP 4.4.7 and earlier, and PHP 5 5.2.3 and earlier, when invoked from a .htaccess file, allow remote attackers to bypass safe_mode and open_basedir restrictions and possibly execute arbitrary commands, as demonstrated using (a) php_value, (b) php_flag, and (c) directives in .htaccess.
- GLSA-200710-02: PHP: Multiple vulnerabilities
- SA26642: PHP Multiple Vulnerabilities
- SA27648: PHP Multiple Vulnerabilities
- SA28318: PHP Multiple Vulnerabilities
- SA29420: Mac OS X Security Update Fixes Multiple Vulnerabilities
- VUPEN/ADV-2007-3023: PHP Multiple Function and Extension Code Execution and Security Bypass Issues
- VUPEN/ADV-2008-0059: PHP Security Update Fixes Multiple Integer Overflow and Security Bypass
- VUPEN/ADV-2008-0398: HP-UX Security Update Fixes Apache Code Execution Vulnerabilities
- VUPEN/ADV-2008-0924: Apple Mac OS X Command Execution and Security Bypass Issues
Platforms Affected:
- Apple Mac OS X 10.4.11
- Apple Mac OS X Server 10.4.11
- Apple Mac OS X Server 10.5.2
- Gentoo Linux
- HP HP-UX B.11.11
- HP HP-UX B.11.23
- HP HP-UX B.11.31
- PHP PHP 4.4.7
- PHP PHP 5.0.0 RC2
- PHP PHP 5.0.0 Beta2
- PHP PHP 5.0.0 Beta3
- PHP PHP 5.0.0 Beta4
- PHP PHP 5.0.0 RC1
- PHP PHP 5.0.0 Beta1
- PHP PHP 5.0.0
- PHP PHP 5.0.0 RC3
- 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
- PHP PHP 5.1.5
- PHP PHP 5.1.6
- PHP PHP 5.2.0
- PHP PHP 5.2.1
- PHP PHP 5.2.2
- PHP PHP 5.2.3
Reported:
Jun 27, 2007
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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
