Citrix Bleed: How a Single Bug Leaked Corporate Secrets (CVE-202
A memory over-read in Citrix NetScaler ADC and Gateway allowed unauthenticated attackers to leak session cookies from device memory. Attackers could then use a stolen cookie to hijack an authenticated session, bypassing passwords and MFA.
Published on infosecwriteups.com
Every so often, a vulnerability drops that sends shockwaves through the cybersecurity world. Itβs the kind of bug that has CISOs losing sleep and hackers firing up their terminals with glee.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a buffer over-read caused by an oversized Host header, which made the server return memory contents in the response body.
Impact
An attacker could bypass passwords and multi-factor authentication to hijack a user's session, potentially including privileged administrators.
What the attacker needed
Target runs vulnerable Citrix NetScaler; Network access to the device; No authentication needed
The fix
Citrix released patched firmware, and administrators must also kill all active and persistent sessions to invalidate any stolen tokens.
How it was found
- Find exposed NetScaler login portals using reconnaissance tools or vulnerability scanners.
- Send a GET request with an oversized Host header to a specific endpoint to trigger the memory leak.
- Search the leaked memory dump for session cookie values.
- Use a browser extension to replace the existing cookie with the stolen one and refresh the page to hijack the session.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This bug let anyone send a specially crafted request to a Citrix login server and get back pieces of the server's memory. That memory contained session cookies, which are like temporary login tickets. If an attacker copied a valid ticket into their own browser, they could act as that logged-in user without knowing the password or passing MFA.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.