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.
References
- http://security-tracker.debian.org/tracker/CVE-2012-4388
- [oss-security] 20120905 Re: php header() header injection detection bypass mailing-list
- 1027463 vdb-entry
- [oss-security] 20120906 Re: Re: php header() header injection detection bypass mailing-list
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986
- https://bugs.php.net/bug.php?id=60227
- [oss-security] 20120829 php header() header injection detection bypass mailing-list
- [oss-security] 20120901 Re: php header() header injection detection bypass mailing-list
- SUSE-SU-2013:1315 vendor-advisory
- [internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP mailing-list
- USN-1569-1 vendor-advisory