CVE-2012-4388 The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote att...
MediumCVSS 4.3
EPSS 4.2%
- Published
- Updated
- Exploit status
- No public exploit known
Description
The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote attackers to bypass an HTTP response-splitting protection mechanism via a crafted URL, related to improper interaction between the PHP header function and certain browsers, as demonstrated by Internet Explorer and Google Chrome. NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-1398.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | >= 5.3.0, < 5.3.11 | 5.3.11 |
| PHP | = 5.4.0-rc2 | No fix listed |
| Canonical Ubuntu Linux | = 8.04 | No fix listed |
| Canonical Ubuntu Linux | = 10.04 | No fix listed |
| Canonical Ubuntu Linux | = 11.04 | No fix listed |
| Canonical Ubuntu Linux | = 11.10 | No fix listed |
| Canonical Ubuntu Linux | = 12.04 | No fix listed |
| debian linux | = 6.0 | No fix listed |
References
- [internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP broken-link mailing-list
- SUSE-SU-2013:1315 mailing-list third-party-advisory vendor-advisory
- [oss-security] 20120829 php header() header injection detection bypass mailing-list third-party-advisory
- [oss-security] 20120901 Re: php header() header injection detection bypass mailing-list third-party-advisory
- [oss-security] 20120905 Re: php header() header injection detection bypass mailing-list third-party-advisory
- [oss-security] 20120906 Re: Re: php header() header injection detection bypass mailing-list third-party-advisory
- security-tracker.debian.org third-party-advisory
- svn.php.net exploit patch vendor-advisory
- 1027463 third-party-advisory vdb-entry
- USN-1569-1 third-party-advisory vendor-advisory
- bugs.php.net vendor-advisory