Improper input validation in PHP
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 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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 4.3 (Medium). Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.042, 91.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 5.4.0
- Canonical Ubuntu Linux — versions 8.04, 10.04, 11.04
- Debian Linux — versions 6.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Live-Hack-CVE/CVE-2012-4388). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security-tracker.debian.org/tracker/CVE-2012-4388 (Third Party Advisory)
- [oss-security] 20120905 Re: php header() header injection detection bypass (mailing-list, Mailing List, Third Party Advisory)
- www.securitytracker.com/id (Third Party Advisory, VDB Entry, vdb-entry)
- [oss-security] 20120906 Re: Re: php header() header injection detection bypass (mailing-list, Mailing List, Third Party Advisory)
- svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c (Exploit, Patch, Vendor Advisory)
- bugs.php.net/bug.php (Vendor Advisory)
- [oss-security] 20120829 php header() header injection detection bypass (mailing-list, Mailing List, Third Party Advisory)
- [oss-security] 20120901 Re: php header() header injection detection bypass (mailing-list, Mailing List, Third Party Advisory)
- SUSE-SU-2013:1315 (vendor-advisory, Mailing List, Third Party Advisory)
- [internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP (mailing-list, Broken Link)