Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2025-5777 PoC — NetScaler ADC and NetScaler Gateway - Insufficient input validation leading to memory overread

Source
Associated Vulnerability
Title:NetScaler ADC and NetScaler Gateway - Insufficient input validation leading to memory overread (CVE-2025-5777)
Description:Insufficient input validation leading to memory overread when the NetScaler is configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) OR AAA virtual server
Description
Exploit for CVE-2025-5777: Citrix NetScaler Memory Disclosure (CitrixBleed 2)
Readme
# Exploit for CVE-2025-5777: Citrix NetScaler Memory Disclosure (CitrixBleed 2) [T1606]

## Description
- External, unauthenticated exploit for memory leak in Citrix NetScaler Gateway & AAA Virtual Server 
- Leverages insufficient input validation in the web app to fire the payload, and TOCTOU Race Conditions to scrape variables in memory 
## Asset Discovery & Exposure Analysis - (Red/Purple Team -> Organization)
### Method 1: Search Engine Dorking
```
site:<targetDomainSuffix> intitle:"Netscaler AAA" | intitle:"Citrix Gateway"
```
### Method 2: Hunter.how
```
domain.suffix=="<targetDomainSuffix>" and header.server="snow_adc"
```
## Exploit Usage
```
bash CVE-2025-5777.sh <targetDomain>
```
## Pivoting - Red Team Operations
Objective - Pivot externally without credentials -> internal with low priv user credentials over VPN
### Methodology
- Inspect response bodies and experiment with decoding and escaping to gain visibility on the asset - log files, etc.
- Inspect response headers, repeat til capture of active user session cookies in memory - [Demonstration by horizon3.ai](https://horizon3.ai/wp-content/uploads/2025/07/citrixbleed2.mp4)
- Authenticate to the target domain 
## References
- [CVEdetails.com](https://www.cvedetails.com/cve/CVE-2025-5777/)
- [Tenable Plugins](https://www.tenable.com/cve/CVE-2025-5777)
- [Attack Vector: CAPEC-29 - Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions](https://capec.mitre.org/data/definitions/26.html)
- [Adversary Emulation: T1606 - Forge Web Credentials](https://attack.mitre.org/techniques/T1606)
- [EUVD-2025-18497](https://euvd.enisa.europa.eu/vulnerability/CVE-2025-5777)
- [Horizon3.ai - CitrixBleed 2 Exploit Deep Dive](https://horizon3.ai/attack-research/attack-blogs/cve-2025-5777-citrixbleed-2-write-up-maybe/)
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →