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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55182-NextJS-Scanner-React2Shell-PoC — CVE-2025-55182 的自动化检测与利用工具包,该漏洞是 Next.js React Server Components 中的一个严重 RCE 漏洞。具备多层指纹识别、WAF 绕过以及批量扫描功能,适用于渗透测试。 | Kitploit
工具/GitHubGitHub/exrienz/cve-2025-55182-nextjs-scanner-react2shell-poc
侦察漏洞扫描器Payload生成漏洞利用Web应用程序漏洞利用WAF绕过渗透测试命令与控制

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHub
exrienz/cve-2025-55182-nextjs-scanner-react2shell-poc

CVE-2025-55182-NextJS-Scanner-React2Shell-PoC

CVE-2025-55182 的自动化检测与利用工具包,该漏洞是 Next.js React Server Components 中的一个严重 RCE 漏洞。具备多层指纹识别、WAF 绕过以及批量扫描功能,适用于渗透测试。

查看仓库
59个月前尚未审核

CVE-2025-55182 漏洞利用工具

一个全面的安全研究工具,用于测试 Next.js React Server Components 远程代码执行漏洞(CVE-2025-55182)。

概述

该工具包为 CVE-2025-55182 提供自动化检测与利用能力,CVE-2025-55182 是一个影响使用 React Server Components 的 Next.js 应用程序的严重 RCE 漏洞。该工具包包含三个集成组件:

  • NextApp.py - 智能 Next.js 应用指纹识别扫描器
  • exploit.sh - 灵活的利用工具,支持单个或批量目标
  • auto_exploit.sh - 端到端自动化扫描与利用编排器

功能特性

  • 多层检测:标头分析、响应体扫描和 JavaScript 指纹识别
  • 置信度评分:智能分类(高/中/低),最大限度减少误报
  • WAF 绕过:内置规避常见 Web 应用防火墙的技术
  • 批量扫描:高效处理多个目标,并提供详细报告
  • 自动化工作流:一条命令即可完成检测与利用
  • 详细报告:全面的输出文件,包含分类结果

环境要求

Python 组件

  • Python 3.x
  • requests 库
root@kitploit:~
pip3 install requests

Bash 组件

  • curl
  • openssl
  • 标准 Unix 工具(sed, grep, awk, mktemp)

安装

root@kitploit:~
git clone https://github.com/yourusername/CVE-2025-55182-poc-tool.git
cd CVE-2025-55182-poc-tool
chmod +x exploit.sh auto_exploit.sh

使用方法

快速开始(推荐)

扫描并利用目标的最快方式:

root@kitploit:~
# Create a file with target URLs (one per line)
echo "https://example.com" > targets.txt

# Auto-scan and exploit in one command
./auto_exploit.sh -i targets.txt -s -c "id"

仅检测

识别 Next.js 应用程序但不进行利用:

root@kitploit:~
python3 NextApp.py targets.txt

输出文件:

  • confirmed_nextjs_targets.txt - 所有检测到的 Next.js 应用程序
  • high_confidence_nextjs_targets.txt - 仅高置信度检测结果

单目标利用

测试单个目标:

root@kitploit:~
# Basic exploitation
./exploit.sh -d https://target.com -c "whoami"

# With WAF bypass
./exploit.sh -d target.com -c "cat /etc/passwd" -w

# Custom WAF bypass size
./exploit.sh -d target.com -c "ls -la" --waf-bypass --waf-size 256

# Skip SSL verification
./exploit.sh -d https://target.com -c "id" -k

批量利用

方案一:统一工作流(推荐)

root@kitploit:~
./auto_exploit.sh -i targets.txt -s -c "whoami"

方案二:两步手动工作流

root@kitploit:~
# Step 1: Detect Next.js applications
python3 NextApp.py targets.txt

# Step 2: Exploit confirmed targets
./auto_exploit.sh -c "id"

高级选项

root@kitploit:~
# Full auto-scan with WAF bypass
./auto_exploit.sh -i targets.txt -s -w --waf-size 256 -c "whoami"

# Custom delays and timeouts
./auto_exploit.sh -i targets.txt -s --delay 5 --timeout 30 -c "id"

# Skip SSL verification in bulk mode
./auto_exploit.sh -i targets.txt -s -k -c "hostname"

命令参考

NextApp.py

root@kitploit:~
python3 NextApp.py <targets_file>

参数:

  • targets_file - 包含目标 URL 的文本文件(每行一个)

exploit.sh

root@kitploit:~
./exploit.sh [OPTIONS]

选项:

auto_exploit.sh

root@kitploit:~
./auto_exploit.sh [OPTIONS]

选项:

输出文件

confirmed_nextjs_targets.txt

由 NextApp.py 生成 - 包含所有被识别为 Next.js 应用程序的 URL。

high_confidence_nextjs_targets.txt

由 NextApp.py 生成 - 仅包含高置信度 Next.js 检测结果(置信度评分 100+)。

exploit_results.txt

由 auto_exploit.sh 生成 - 全面的利用报告,包括:

  • 存在漏洞的目标及其命令输出
  • 不存在漏洞的目标
  • 错误及其详细信息
  • 摘要统计

检测方法

扫描器使用多种检测技术并配合置信度评分系统:

标头分析(每项50分)

  • Next.js 特定标头:x-nextjs-*、x-vercel-*
  • x-powered-by: Next.js
  • Server: Vercel

响应体扫描

  • __NEXT_DATA__ 存在(100分)
  • Next.js buildId 模式(50分)
  • _next/* 资源路径(根据数量25-75分)

JavaScript 指纹识别(60分)

  • __NEXT_DATA__、__NEXT_LOADED_PAGES__
  • middlewareManifest、self.__RSC_MANIFEST

置信度阈值:

  • 高(100+):多个强指标
  • 中(75-99):多个中等指标
  • 低(50-74):证据极少
  • 低于50:视为误报并拒绝

利用机制

该利用程序利用 Next.js React Server Components 中的原型链污染链:

  1. 构造包含嵌套负载的 multipart 表单数据
  2. 通过 JSON 反序列化污染 __proto__ 链
  3. 向 _response._prefix 注入任意 JavaScript
  4. 通过 process.mainModule.require('child_process').execSync() 执行命令
  5. 从 X-Action-Redirect 标头中提取结果
  6. URL 解码并格式化输出

WAF 绕过技术

该工具包包含内置的 WAF 绕过能力:

  • 垃圾数据注入:预置随机数据以绕过基于大小的过滤器
  • 动态边界:随机化 multipart 边界
  • 请求 ID 随机化:每个请求使用唯一 ID
  • 可配置大小:可调节垃圾数据大小(默认 128KB)

使用 -w 或 --waf-bypass 标志启用。

示例

扫描并利用 Web 应用程序

root@kitploit:~
# Create target list
cat > targets.txt << EOF
https://app.example.com
https://dashboard.example.com
https://admin.example.com
EOF

# Run unified scan
./auto_exploit.sh -i targets.txt -s -c "whoami"

# Check results
cat exploit_results.txt

使用 WAF 绕过测试单个目标

root@kitploit:~
./exploit.sh -d https://target.com -c "cat /etc/passwd" -w --waf-size 256

仅高置信度目标

root@kitploit:~
# Step 1: Detect and filter
python3 NextApp.py targets.txt

# Step 2: Exploit high-confidence only
./auto_exploit.sh -i high_confidence_nextjs_targets.txt -c "id"

法律免责声明

本工具仅供授权安全测试和研究使用。使用者必须:

  • ✅ 在测试任何系统前获得明确的书面许可
  • ✅ 仅用于经授权的渗透测试项目
  • ✅ 遵守所有适用的法律法规
  • ✅ 用于防御性安全研究和 CTF 竞赛

未经授权访问计算机系统是违法的。 作者不对滥用本工具承担任何责任。

漏洞信息

  • CVE ID: CVE-2025-55182
  • 受影响组件: Next.js React Server Components
  • 类型: 远程代码执行(RCE)
  • 严重性: 严重

致谢

感谢发现并披露此漏洞的安全研究人员:

  • @zack0x01
  • @infosec_au
  • @pdiscoveryio

贡献

欢迎贡献!请:

  1. Fork 该仓库
  2. 创建功能分支
  3. 提交您的更改
  4. 提交 Pull Request

支持

如有问题、疑问或功能请求,请在 GitHub 上提交 issue。

许可证

本项目仅用于教育和授权安全测试目的。请负责任地、合乎道德地使用。

下载工具
选项描述默认值
-d, --domain目标域名/URLhttp://localhost:3000
-f, --file包含目标列表的文件-
-c, --command要执行的命令id
-w, --waf-bypass启用 WAF 绕过已禁用
--waf-size SIZEWAF 绕过数据大小 (KB)128
--timeout SECONDS请求超时时间15
-k, --insecure跳过 SSL 验证已禁用
--user-agent AGENT自定义 User-AgentMozilla/5.0...
-h, --help显示帮助信息-
选项描述默认值
-i, --input FILE输入目标文件confirmed_nextjs_targets.txt
-o, --output FILE输出结果文件exploit_results.txt
-c, --command CMD要执行的命令id
-w, --waf-bypass启用 WAF 绕过已禁用
--waf-size SIZEWAF 绕过大小 (KB)128
--timeout SECONDS请求超时时间15
-k, --insecure跳过 SSL 验证已禁用
--delay SECONDS请求之间的延迟2
-s, --scan先自动扫描 Next.js已禁用
-h, --help显示帮助信息-