
Memory disclosure vulnerability in Citrix NetScaler ADC and Gateway when configured as a Gateway (VPN virtual server, ICA proxy, CVPN, RDP Proxy).
This repository contains an advanced Proof of Concept (PoC) scanner for CVE-2025-5777, dubbed CitrixBleed2, a memory disclosure vulnerability affecting Citrix NetScaler ADC and Gateway.
I did some changes to the original poc, this script is based on research originally published by WatchTowr Labs, with enhancements for deeper information extraction and secure memory leak analysis.
Disclaimer: This tool is provided for educational and authorized testing purposes only. Unauthorized use against systems you do not own or have explicit permission to test is illegal.
CVE-2025-5777 is a memory disclosure vulnerability in Citrix NetScaler ADC and Gateway when configured as a Gateway (VPN virtual server, ICA proxy, CVPN, RDP Proxy).
By sending specially crafted HTTP POST requests to the authentication endpoint, an unauthenticated attacker can trigger memory disclosure — leaking sensitive data from heap memory.
This issue is a follow-up to the original "CitrixBleed" (CVE-2023-4966), and was disclosed in July 2025.
/p/u/doAuthentication.doExploits the CVE-2025-5777 (CitrixBleed2) memory disclosure vulnerability
Collects leaked memory content via crafted POST /p/u/doAuthentication.do requests
Extracts sensitive data like:
Displays and logs TLS certificate metadata (subject, issuer, validity)
Automatically redacts known branding from specific organizations (e.g., removed specific vendor mentions)
Saves leaks with a timestamped output file to prevent overwrites
python3 cve-2025-5777.py -t <target> -r 5 -T 5 -v
python3 cve-2025-5777.py -l targets.txt -r 3 -T 10
python3 cve-2025-5777.py -t <target> -o custom_output.txt
If -o is not specified, a timestamped file is created automatically (e.g., citrix_leaks_20250705_154312.txt).
The tool sends malformed authentication requests to:
POST /p/u/doAuthentication.do HTTP/1.0
With a short payload and specific User-Agent to trigger the memory leak.
It parses the raw response for high entropy data, certificate metadata, and sensitive content (via regex).
This repository is released under the MIT License.
Stay secure. Test responsibly.