Highlights
HTTP Response Splitting: 2 prior fixes. Scrutinize any change in this area.
src/HeaderSecurity.php: most-fixed (2 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
HTTP Response Splitting: Inadequate type validation of header values allowed non-string/non-numeric array inputs to bypass injection checks, leading to potential HTTP response splitting. Ensuring rigorous type enforcement alongside character sanitization is critical to defending this boundary.
HTTP Request Smuggling: A failure to validate header names early in the initialization phase allowed malformed strings to propagate, potentially enabling HTTP request smuggling or response desynchronization in downstream proxies.
Auth Bypass: Case-sensitive checks on the X-Forwarded-Proto header allowed attackers to bypass HTTPS-only security policies by supplying capitalized schemes (e.g., 'HTTPS' or 'Https'), resulting in incorrect scheme detection.