Session disclosure via cached Set-Cookie replay in Symfony HttpCache
In Symfony (symfony/http-kernel; Symfony 4.4 branch), a change in AbstractSessionListener could result in responses containing a Set-Cookie header. When Symfony’s HTTP cache system (HttpCache reverse proxy) is enabled, it may cache entire responses including headers and subsequently replay the cached Set-Cookie header to other clients. This can expose a victim’s session cookie to a different client, enabling session disclosure and potential session hijacking. The issue is patched in Symfony 4.4.50+ (commit d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb).
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Session disclosure/hijacking: a Set-Cookie header containing session information may be stored by HttpCache and returned to other clients, allowing an attacker to obtain a victim’s session cookie and potentially impersonate the victim.
If you can’t patch tonight, do this now.
Prevent caching of sensitive headers in Symfony HttpCache. Configure HttpStore to treat Set-Cookie as a private header and strip it from cached responses (ensure Set-Cookie is included in the private headers list). If immediate upgrade is not possible, override/extend HttpStore private headers configuration to remove Set-Cookie from cacheable responses.
Patch, then assume compromise.
Upgrade to a fixed version: symfony/http-kernel and symfony/symfony 4.4.50 or later (within the affected branch). Where upgrading is not possible, apply the upstream patch (commit d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb).
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.