Highlights
Insecure Deserialization: 7 prior fixes. Scrutinize any change in this area.
Middleware/EncryptCookies.php: most-fixed (15 issues). Treat as high-risk during review.
8 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.
Insecure Deserialization: Automatic PHP deserialization of decrypted cookies (including session IDs and XSRF-TOKENs) allows remote attackers to execute arbitrary code or inject malicious objects via forged cookie payloads. Disabling the serialization flag during decryption is necessary to mitigate this recurring flaw.
Cryptographic Issues: Weak unkeyed SHA-1 hash verification and missing cookie name binding allowed cookie substitution and forging attacks. Transitioning to keyed HMAC-SHA1 signatures and embedding name prefixes within the encrypted payload are critical to guarantee cipher integrity.
Denial of Service: Type confusion (such as passing array-typed or non-string cookies) or unhandled exceptions thrown during decryption operations can crash the HTTP request, exposing the application to Denial of Service vectors.