Blog/Vulnerabilities

Session and Token Theft: Why Stolen Cookies Walk Straight Past MFA

A stolen session token is an authentication that already happened. Why MFA does not help, how Citrix Bleed proved it, and what actually shortens the window.

CyberWatch AI26 November 2026 · 7 min read
A paper boarding pass and a passport on an airport check-in desk

In late 2023 CISA, the FBI and partner agencies published an advisory about a Citrix flaw that is worth reading even now, because of one sentence. Describing exploitation of CVE-2023-4966 against NetScaler appliances, the advisory notes that the information obtained through the exploit "contains a valid NetScaler AAA session cookie," and that ransomware affiliates used those cookies to "establish an authenticated session within the NetScaler appliance without a username, password, or access to MFA tokens."

Without a username, password, or access to MFA tokens. Every control most organizations consider their authentication strategy, bypassed, not by defeating any of them but by arriving after they had already been satisfied.

What a token is and why it is enough

Authentication is a one-time event. You prove who you are, and the system then needs some way to remember that for the next few hours without asking again on every request. So it issues something: a session cookie, an access token, a refresh token, a signed assertion. That artifact is the memory of your authentication.

It is also, necessarily, a bearer credential. Whoever presents it is treated as the person it was issued to. The system has no way to tell a legitimate holder from a thief, because the token is the only thing it was designed to check.

This is why token theft defeats strong authentication so completely, and why the usual advice about passwords and second factors does not apply. The factors were verified. The token is the receipt. Copying the receipt is the attack.

MITRE ATT&CK catalogs the two main variants separately: T1550.004, using a web session cookie as alternate authentication material, and T1528, stealing an application access token. Both describe an adversary authenticating as someone else without any credential prompt.

Four ways tokens get taken

From the device

Browser session cookies are stored on disk, and commodity information-stealing malware harvests them as a matter of routine alongside saved passwords. The attacker imports the cookie into their own browser and the session continues on their machine. Nothing appears at the identity provider as a new sign-in, because there was no sign-in.

This is the variant with the widest reach, because it does not require any vulnerability in the service. It requires one compromised endpoint. Our endpoint security guide covers the device-side controls that matter here.

Through a proxy during login

An adversary-in-the-middle phishing kit stands between the victim and the real service. The victim reaches what looks like the genuine login page because it is the genuine login page, relayed. They type their password, approve the push notification or enter the one-time code, and the proxy forwards each step to the real service and keeps the session token that comes back.

The defeat here is complete for any factor the user can transmit. A code can be relayed. A push approval can be relayed. What cannot be relayed is a cryptographic response bound to the origin the browser is actually talking to, which is why CISA's guidance on phishing-resistant multi-factor authentication exists and why passkeys and FIDO2 security keys behave differently in this scenario. Our pieces on what a passkey is and passkeys against phishing cover the mechanism.

Out of a vulnerable service's memory

This is the Citrix Bleed category, and it is the one that scales worst for defenders because no user is involved at all. Citrix's own advisory describes CVE-2023-4966 as sensitive information disclosure in NetScaler ADC and NetScaler Gateway when configured as a gateway or AAA virtual server, and assigns it CWE-119, an improper restriction of operations within the bounds of a memory buffer. CISA's advisory describes the trigger as an HTTP GET request with a crafted Host header, and the result as system memory returned to the attacker, containing a valid session cookie.

Note the scoring disagreement, which is instructive. Citrix scored it 9.4. The National Vulnerability Database's own assessment is 7.5, a High rather than a Critical, because an information disclosure flaw scores lower on integrity and availability than the consequences in practice suggest. CISA added it to the Known Exploited Vulnerabilities catalog in October 2023 with known use in ransomware campaigns, and named LockBit 3.0 affiliates in the joint advisory. If you had prioritized by the NVD base score alone, this would not have been your most urgent item that month.

By abusing a consented application

In OAuth-based environments, an attacker who persuades a user to grant consent to an application they control receives tokens issued legitimately by the identity provider. Nothing was stolen in the conventional sense. The user authorized it. MITRE ATT&CK's detection guidance for drive-by compromise includes watching for exactly this signal: unusual consent grants and unexpected application registrations. Our explainer on OAuth misconfiguration covers that path in detail.

The part most incident responses get wrong

Patching a token-leaking vulnerability does not invalidate the tokens it leaked. This sounds obvious written down and is missed routinely, because patch tickets close when the version number changes.

The vendor guidance for CVE-2023-4966 is unusually explicit about it. NetScaler's post on investigation recommendations says that after upgrading, "we recommend that you remove any active or persistent sessions using the following commands," and then lists them: kill aaa session -all, kill icaconnection -all, kill rdp connection -all, kill pcoipConnection -all, and clear lb persistentSessions.

CISA's advisory goes further on the response side. Where compromise is suspected, it advises assuming "that threat actors hold full administrative access," reimaging hosts and creating new credentials, and warns that removing malicious administrator accounts "may not fully mitigate risk" because additional persistence mechanisms may already exist.

Generalize that into a rule. Any advisory describing leaked session material, authentication bypass or credential disclosure produces a second task alongside the patch: invalidate what was issued. Session revocation, credential rotation and a check for accounts created during the exposure window. If your change process has no slot for that second task, it will not happen. Our incident response guide covers wiring it in.

What actually reduces the risk

In rough order of durability rather than ease.

  1. Bind the token to something uncopyable. RFC 9700, the IETF's best current practice for OAuth 2.0 security published in January 2025, recommends that authorization and resource servers use mechanisms for sender-constraining access tokens, naming mutual TLS and DPoP. A sender-constrained token is useless on its own, because presenting it also requires proving possession of a key that stayed on the legitimate device. This is the only measure on this list that makes a stolen token worthless rather than merely short-lived.
  2. Require a managed, compliant device for sensitive access. If the session is only honored from a device your organization recognizes, importing the cookie elsewhere fails. Platform features exist for this; the work is in defining which applications warrant it.
  3. Deploy phishing-resistant authentication for the accounts that matter. This closes the proxy route specifically, which is the fastest-growing one. It does nothing about theft from a compromised device, so it is necessary rather than sufficient.
  4. Handle refresh tokens carefully. RFC 9700 requires that refresh tokens for public clients be either sender-constrained or subject to rotation, because a stolen long-lived refresh token is a renewable supply of access rather than a single session.
  5. Shorten lifetimes where the usability cost is acceptable, and keep high-privilege sessions shortest. Treat this as damage limitation.
  6. Make bulk revocation a tested capability. Knowing how to invalidate every session for an application, a user population or an appliance, and having done it at least once outside an incident, is what turns the advice above into something you can execute at two in the morning.
  7. Invalidate server-side on logout, and keep stateless tokens short-lived. Clearing a cookie in the browser while the server still honors the value is not revocation.

For federated environments, NIST and CISA published joint implementation recommendations in NIST IR 8587, covering key management, token verification and token lifecycle controls across single sign-on, federation and API access. It is written for federal agencies and cloud service providers, and the architectural guidance transfers.

Detection

The signal is mismatch rather than malice. A token is being used, and the circumstances of use do not match the circumstances of issue.

  • A session active from a new network location shortly after being issued elsewhere, or from two locations at once.
  • A device or user agent fingerprint that changes mid-session.
  • Access through an unexpected client application, particularly a legacy protocol that skips modern policy checks.
  • Activity with no corresponding authentication event, which is the characteristic signature of a replayed cookie.
  • New consent grants, new application registrations and unexpected token issuance at the identity layer.

These all require identity provider logs retained long enough to be useful and reviewed as a dataset rather than one alert at a time. Our threat intelligence guide covers organizing that kind of behavioral detection list.

Most token theft starts with a convincing login page. Adversary-in-the-middle kits rely on you reaching their proxy through a link. Paste a suspicious link into CyberWatch AI Scan for a free check before signing in anywhere.

The short version

A session token is the stored result of a successful authentication, and anyone holding it is treated as the person who authenticated. That makes theft of the token equivalent to theft of the account, and it makes multi-factor authentication irrelevant to the attack, because the factors were already satisfied when the token was minted.

Tokens are taken from compromised devices, through proxies during login, out of the memory of vulnerable services, and by consent to attacker-controlled applications. Shorter lifetimes help at the margin. What changes the outcome is binding tokens to a device or key so a copy is worthless, requiring recognized devices for sensitive access, and treating revocation as a task that must happen alongside every patch for a flaw that leaked authentication material.

Frequently asked questions

What is session token theft?

Taking the credential a system issues after a successful login, such as a session cookie or an access token, and replaying it from somewhere else. The attacker is not bypassing authentication. They are reusing an authentication that already succeeded.

Why doesn't multi-factor authentication stop it?

Because the factors are checked once, before the token is issued. A token presented afterwards is proof that those checks already passed. CISA's advisory on CVE-2023-4966 states that attackers could establish an authenticated session without a username, password or access to MFA tokens.

What is pass-the-cookie?

The common name for extracting a browser session cookie from a compromised device and importing it into the attacker's browser. MITRE ATT&CK tracks it as technique T1550.004, Web Session Cookie. No password is needed and no sign-in event is generated at the identity provider.

What is an adversary-in-the-middle phishing kit?

A proxy that sits between the victim and the real login page. The victim sees genuine content and completes every authentication step, including MFA, while the proxy relays traffic and keeps the resulting token. It defeats one-time codes and push approvals because both are completed legitimately.

Does patching fix a vulnerability that leaked session tokens?

Not on its own. Tokens taken before the patch remain valid until they expire or are invalidated. For CVE-2023-4966 the vendor recommended removing all active and persistent sessions after upgrading, with specific commands, because the update does not revoke what was already issued.

What makes a token harder to steal and reuse?

Binding it to something the attacker cannot copy. The OAuth security best current practice recommends sender-constrained access tokens using mechanisms such as mutual TLS or DPoP, so that presenting the token also requires proving possession of a key held by the legitimate client.

How do I detect token theft?

Look for a session being used from a context that does not match where it was issued: a new address, a different device fingerprint, an unexpected client application, or impossible travel. Also watch for identity-layer anomalies such as unexpected consent grants and new application registrations.

Should I shorten token lifetimes?

Shorter lifetimes reduce the value of a stolen token, with a usability cost. The more durable improvement is to bind tokens to a device or a key and to have a tested, fast path to revoke sessions in bulk, since lifetime alone only limits how long an attack lasts rather than whether it works.

Sources

  1. Threat Actors Exploiting Citrix CVE-2023-4966 to Steal NetScaler Session Tokens, US Cybersecurity and Infrastructure Security Agency
  2. NetScaler Investigation Recommendations for CVE-2023-4966, NetScaler
  3. CVE-2023-4966, CVE Program
  4. Use Alternate Authentication Material: Web Session Cookie, Technique T1550.004, MITRE ATT&CK
  5. Steal Application Access Token, Technique T1528, MITRE ATT&CK
  6. NIST IR 8587, Protecting Tokens and Assertions from Forgery, Theft, and Misuse, US National Institute of Standards and Technology
  7. RFC 9700: Best Current Practice for OAuth 2.0 Security, IETF
  8. Implementing Phishing-Resistant MFA, US Cybersecurity and Infrastructure Security Agency
  9. Known Exploited Vulnerabilities Catalog, US Cybersecurity and Infrastructure Security Agency
Share this article
LinkedIn WhatsApp X
For organizations

Your people get these messages at work too.

CyberWatch AI sends your staff realistic practice attacks, trains the gaps it finds, and shows management exactly where the organization stands.