
React/Next.js React4Shell RCE CVE-2025-55182 Checker
Ein umfassendes Erkennungstool für CVE-2025-55182 in React/Next.js-Anwendungen mit mehreren Erkennungstechniken.
NUR FÜR AUTORISIERTE SICHERHEITSTESTS UND FORSCHUNGSZWECKE
Dieses Tool ist vorgesehen für:
Unbefugter Zugriff auf Computersysteme ist illegal. Holen Sie vor dem Testen immer eine schriftliche Genehmigung ein.
Dieser Detektor testet umfassend, ob eine Zielanwendung mit mehreren Techniken anfällig für CVE-2025-55182 ist:
Das Tool testet Node.js-Gadget-Ketten mit harmlosen Operationen:
1+1)echo test)path)/dev/null)Testvorgänge:
echo test, 1+1)/dev/null)Tut NICHT:
Dieses Tool verwendet uv zur Abhängigkeitsverwaltung und Ausführung.
Keine Installation erforderlich! Einfach klonen und ausführen:
git clone <repository-url>
cd CVE-2025-55182/poc
uv run check http://target.com:3000
Das Tool installiert Abhängigkeiten beim ersten Start automatisch.
uv run check <target_url>
# Test a target with default settings (tests /formaction endpoint)
uv run check http://localhost:3002
# Specify custom endpoint
uv run check http://localhost:3002 --endpoint /api/formaction
# Test multiple targets from a file
uv run check --file targets.txt
# Save vulnerable hosts to file
uv run check --file targets.txt -o vulnerable.txt
# Increase timeout for slow connections
uv run check http://localhost:3002 --timeout 15
# Disable SSL verification (for self-signed certificates)
uv run check http://localhost:3002 --no-ssl-verify
# Quiet mode (minimal output)
uv run check http://localhost:3002 --quiet
usage: uv run check [-h] [-f FILE] [-e ENDPOINT] [-t TIMEOUT]
[--no-ssl-verify] [-q] [-o OUTPUT] [target]
positional arguments:
target Ziel-URL (z.B. http://target.com:3000)
optional arguments:
-h, --help Hilfemeldung anzeigen und beenden
-f, --file FILE Datei mit Ziel-URLs (eine pro Zeile)
-e, --endpoint API-Endpunkt-Pfad (Standard: /formaction)
-t, --timeout Anfrage-Timeout in Sekunden (Standard: 10)
--no-ssl-verify SSL-Zertifikatsprüfung deaktivieren
-q, --quiet Stiller Modus (minimale Ausgabe)
-o, --output OUTPUT Ausgabedatei zum Schreiben verwundbarer Hosts
0 - Ziel ist NICHT verwundbar1 - Ziel IST verwundbar130 - Benutzer unterbrochen (Strg+C)# uv run check http://localhost:3002
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Testing http://localhost:3002/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✓ VULNERABLE
→ Gadget: vm#runInThisContext: ✓ VULNERABLE
→ Gadget: child_process#execSync: ✓ VULNERABLE
→ Gadget: module#_load: ✓ VULNERABLE
→ Gadget: fs#readFileSync: ✓ VULNERABLE
→ Gadget: util#promisify: ✗ Not vulnerable
→ Safe Side-Channel Detection: ✗ Not vulnerable
→ RCE PoC (Unix/Linux): ✗ Not vulnerable
→ RCE PoC (Windows): ✗ Not vulnerable
→ RCE with WAF Bypass (Unix/Linux): ✗ Not vulnerable
→ RCE with WAF Bypass (Windows): ✗ Not vulnerable
→ Advanced WAF Bypass (Unix/Linux): ✗ Not vulnerable
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:3002
Endpoint: /formaction
Techniques Tested: Multiple
Successful Techniques: 5 techniques detected vulnerability
Status: ⚠️ VULNERABLE
The target appears to be vulnerable to CVE-2025-55182.
Techniques that detected vulnerability:
-> Gadget: fs#constructor
-> Gadget: vm#runInThisContext
-> Gadget: child_process#execSync
-> Gadget: module#_load
-> Gadget: fs#readFileSync
Recommendation: Apply security patches immediately.
======================================================================
# uv run check http://localhost:8000
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Testing http://localhost:8000/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✗ Not vulnerable
→ Gadget: vm#runInThisContext: ✗ Not vulnerable
→ Gadget: child_process#execSync: ✗ Not vulnerable
→ Gadget: module#_load: ✗ Not vulnerable
→ Gadget: fs#readFileSync: ✗ Not vulnerable
→ Gadget: util#promisify: ✗ Not vulnerable
→ Safe Side-Channel Detection: ✗ Not vulnerable
→ RCE PoC (Unix/Linux): ✗ Not vulnerable
→ RCE PoC (Windows): ✗ Not vulnerable
→ RCE with WAF Bypass (Unix/Linux): ✗ Not vulnerable
→ RCE with WAF Bypass (Windows): ✗ Not vulnerable
→ Advanced WAF Bypass (Unix/Linux): ✗ Not vulnerable
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:8000
Endpoint: /formaction
Techniques Tested: Multiple
Status: ✓ NOT VULNERABLE
The target does not appear to be vulnerable to CVE-2025-55182.
All detection techniques failed to confirm vulnerability.
======================================================================
Das Skript ermöglicht es, mehrere Hosts gleichzeitig zu testen.
# Create a file with target URLs (one per line)
echo "http://localhost:3002" > targets.txt
echo "http://localhost:8000" >> targets.txt
# Run batch scan
uv run check --file targets.txt -o vulnerable.txt
Output:
======================================================================
CVE-2025-55182 Vulnerability Detector - Enhanced Edition
Multiple Detection Techniques | Comprehensive Coverage
======================================================================
[*] Loaded 2 target(s) from file
[*] Testing target 1/2
[*] Testing http://localhost:3002/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✓ VULNERABLE
→ Gadget: vm#runInThisContext: ✓ VULNERABLE
[... additional techniques ...]
======================================================================
DETECTION RESULTS
======================================================================
Target: http://localhost:3002
Endpoint: /formaction
Techniques Tested: Multiple
Successful Techniques: 5 techniques detected vulnerability
Status: ⚠️ VULNERABLE
[... details ...]
======================================================================
[*] Testing target 2/2
[*] Testing http://localhost:8000/formaction
[*] Testing all detection techniques...
→ Gadget: fs#constructor: ✗ Not vulnerable
[... all techniques fail ...]
----------------------------------------------------------------------
Target: http://localhost:8000
Endpoint: /formaction
Techniques Tested: Multiple
Status: ✓ NOT VULNERABLE
----------------------------------------------------------------------
======================================================================
SUMMARY
======================================================================
Total targets tested: 2
Vulnerable: 1
Not vulnerable: 1
======================================================================
[+] Wrote 1 vulnerable host(s) to vulnerable.txt
Diese Techniken testen, ob bestimmte Node.js-Module und -Funktionen über die Schwachstelle zugänglich sind. Alle verwenden sichere, nicht-destruktive Operationen:
1+1echo testpath-Moduls/dev/null (sichere Systemdatei)echo $((41*271))41*271Verschiedene Umgebungen können bestimmte Ansätze blockieren, während andere erlaubt sind:
child_process ein, erlauben aber das vm-ModulCVE-2025-55182 ist eine Schwachstelle, die bestimmte React/Next.js-Anwendungen betrifft, die Server Actions verwenden. Die Schwachstelle ermöglicht es Angreifern, durch unsichere Deserialisierung von benutzergesteuerten Daten beliebigen Code auf dem Server auszuführen.
$ACTION_*-Feldern verarbeitenWenn Sie mit diesem Tool Schwachstellen entdecken:
Bei Problemen, Fragen oder Verbesserungen lesen Sie bitte die Hauptprojektdokumentation.
Dieses Tool wird ausschließlich für Bildungs- und autorisierte Sicherheitstests bereitgestellt.
Denken Sie daran: Mit großer Macht kommt große Verantwortung. Nutzen Sie dieses Tool ethisch und legal.