XSS in PHP
CVE-2015-8935
The sapi_header_op function in main/SAPI.c in PHP before 5.4.38, 5.5.x before 5.5.22, and 5.6.x before 5.6.6 supports deprecated line folding without considering browser compatibility, which allows remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer by leveraging (1) %0A%20 or (2) %0D%0A%20 mishandling in the header function.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.032, 88.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 5.5.0, 5.5.1, 5.5.2
Weakness classification (CWE)
References
- github.com/php/php-src/commit/996faf964bba1aec06b153b370a7f20d3dd2bb8b (Patch, Issue Tracking)
- openSUSE-SU-2016:1761 (vendor-advisory)
- openSUSE-SU-2016:1922 (vendor-advisory)
- RHSA-2016:2750 (vendor-advisory)
- [oss-security] 20160620 CVE request for PHP bug #68978: "XSS in header() with Internet Explorer" (2015) (mailing-list, Patch, Mailing List)
- bugs.php.net/bug.php (Issue Tracking, Vendor Advisory)
- SUSE-SU-2016:2013 (vendor-advisory)