Session cookie theft
A session cookie is a bearer credential that proves nothing beyond possession. Whoever copies it inherits the logged-in session, skipping the password and the MFA challenge that produced it.
How it works
After a user authenticates, most web applications issue a session cookie so the browser does not have to prove identity on every request. That cookie is the session: it stays valid for hours, days, or weeks, and any browser or tool that presents it is treated as the authenticated user, with no further password or MFA check. Attackers get hold of these cookies in two main ways. Infostealer malware (RedLine, Lumma, and successors) sitting on an endpoint reads browser storage directly and exfiltrates cookies alongside saved passwords. Separately, support and diagnostic tooling routinely collects artifacts, HAR files, log bundles, browser exports, that were never designed as credential stores but happen to contain live cookies, so a breach of the tooling becomes a breach of every session captured inside it.
Once an attacker has the cookie, they import it into their own browser using standard extensions or scripts and are logged in as the victim immediately. There is no login form to fill, no password to guess, and no MFA prompt to face, because the session already cleared all of that.
Why it works
MFA protects the moment of authentication. It says nothing about what happens after, and a session cookie is a bearer token: whoever holds it is the user until it expires or is revoked, with no further check on origin, device, or intent. Most applications also do not bind the cookie to the device or IP that first obtained it, so a copy is exactly as good as the original anywhere it is used. The industry's heavy investment in stronger login-time authentication has, in effect, made the post-authentication session the more attractive and less defended target.
How to detect it
- A session used from an IP, ASN, device, or user agent that has never appeared for that account, with no corresponding new interactive login event.
- Session activity continuing normally after a password reset or MFA re-enrollment, which a stolen but unrevoked cookie will do since the reset does not touch it.
- Anomalous velocity between two locations using the same session in a timeframe that rules out normal travel.
Be honest about the limits: users legitimately switch networks, VPNs, and devices throughout a workday, and a session opened at home and continued at an office will show exactly the IP change this detection looks for. This needs correlation with device fingerprinting and behavioral baselines, not a standalone blocking rule.
How to stop it
- Shorten session lifetimes and re-evaluate risk continuously rather than trusting a long-lived cookie for its full validity window.
- Bind sessions to a device or client with DPoP or mutual TLS, so a copied cookie fails everywhere except the device that obtained it.
- Sanitize diagnostic and support artifacts (HAR files, log exports) to strip cookies and tokens before they are stored anywhere.
- Deploy endpoint protection to catch infostealers before they read browser storage, and treat browser credential stores as a protected surface.
- Rehearse full session revocation as part of incident response, since a password reset alone leaves an already-issued session alive. See token theft.
Seen in the wild
- Infostealers and session hijacking: stealing the session, skipping the login
- Okta's 2023 support-system breach: when your IdP gets phished
- Mirage2FA reached 4,500 organizations by stealing sessions instead of breaking MFA
Sources
Related identity CVEs and breaches
Related on Start with Identity
- CVEKeycloak SAML broker assertion replay, session hijack
Keycloak's SAML broker accepted a replayed assertion and hijacked a user session. An authentication bypass on the broker edge. Patched in the 2026 Keycloak SAML
- CVECisco SAML 2.0 mixes authorization domains
Cisco's SAML 2.0 implementation did not keep authorization domains apart. A token or assertion meant for one domain could authorize in another. May 2024. The pr
- CVEFortiCloud SSO SAML bypass on FortiOS, FortiProxy, FortiSwitchManager
A crafted SAML message bypasses FortiCloud SSO (CWE-347). Arctic Wolf saw malicious logins three days after disclosure. CISA added it to KEV on 16 December 2025
- BlogFortinet's January SSO bypass hit boxes already patched for December's SAML bug
CVE-2026-24858 is the follow-on FortiCloud SSO SAML bypass. Devices patched for CVE-2025-59718 and 59719 were still exploitable. Actively exploited. CISA guidan
- GlossaryIdentity Federation
A trust relationship between identity providers and service providers that lets users authenticate once at their home IdP and access applications at the other p
- GlossaryService Provider (SP)
The application that consumes identity assertions from an IdP to grant the user access. In SAML it's the SP; in OIDC the equivalent is the Relying Party. The se