
Sicherheits-Toolkit für CVE-2025-55182 (React2Shell) — scannen, erkennen, korrelieren und testen Sie die React Server Components RCE-Schwachstelle
flight risk /flaɪt rɪsk/ — Das Flight-Protokoll von React ist die Serialisierungsschicht hinter React Server Components. CVE-2025-55182 nutzt eine Deserialisierungsschwachstelle in Flight aus, um eine RCE ohne Authentifizierung zu erreichen. Wenn Ihre App RSC verwendet, ist sie ein flight risk.
Sicherheits-Toolkit für CVE-2025-55182 (React2Shell) — eine vorauthentifizierte Remote-Codeausführung-Schwachstelle (CVSS 10.0) in React Server Components. Scannen, erkennen, korrelieren und testen.
| Tool | Beschreibung |
|---|---|
| react2shell-scanner | Durchsucht GitHub-Organisationen und GCP-Projekte nach anfälligen React/Next.js-Abhängigkeiten. Authorisierter Exploit-Test (Safe-Probe, Datei lesen, Verzeichnis auflisten, Befehl ausführen). |
| gcp-ioc-scanner | Durchsucht GCP Cloud Logging nach Indikatoren für Kompromittierung (IOC) über mehrere Projekte und K8s-Dienste hinweg. Plug-in-fähige IOC-Definitionen. |
| gcp-log-correlator | Korreliert GCP-Logereignisse nach zeitlicher Nähe auf demselben Pod – z.B. findet heraus, welche HTTP-Anfrage einen RCE-Fehler ausgelöst hat. |
# Clone
git clone https://github.com/YOUR_USER/flight-risk.git
cd flight-risk
# Install dependencies
pip install -r react2shell-scanner/requirements.txt
pip install pyyaml # for gcp-ioc-scanner
# Make scripts executable
chmod +x react2shell-scanner/bin/*
chmod +x gcp-ioc-scanner/gcp-ioc-scanner
chmod +x gcp-log-correlator/gcp-log-correlator
# Authenticate
gh auth login # GitHub scanning
gcloud auth application-default login # GCP scanning + log analysis
Alle Befehle werden aus dem Repository-Stammverzeichnis ausgeführt.
react2shell-scanner/bin/scan-github \
--org YOUR_GITHUB_ORG \
--output ./results/github
react2shell-scanner/bin/scan-gcp \
--project YOUR_GCP_PROJECT \
--output ./results/gcp
react2shell-scanner/bin/scan-all \
--org YOUR_GITHUB_ORG \
--project YOUR_GCP_PROJECT \
--output ./results
python3 react2shell-scanner/cli.py https://your-app.example.com
# Dry run — show payload without sending
python3 react2shell-scanner/cli.py --dry-run --verbose https://your-app.example.com
# Read file via RCE
python3 react2shell-scanner/cli.py --method read-file https://your-app.example.com /etc/hostname
# List directory via RCE
python3 react2shell-scanner/cli.py --method list-dir https://your-app.example.com /app
# Execute command via RCE
python3 react2shell-scanner/cli.py --method exec-cmd https://your-app.example.com "id"
# Batch targets
python3 react2shell-scanner/cli.py --targets targets.txt --output results.json
gcp-ioc-scanner/gcp-ioc-scanner \
--targets gcp-ioc-scanner/examples/targets-example.yaml \
--iocs gcp-ioc-scanner/iocs/cve-2025-55182.yaml \
--start 2026-01-01 \
--end 2026-04-01 \
--output ./results/ioc-scan
gcp-log-correlator/gcp-log-correlator \
--project YOUR_GCP_PROJECT \
--namespace frontend \
--pod-pattern "web-app.*" \
--trigger-filter 'severity=ERROR' \
--preceding-filter 'httpRequest.requestMethod:*' \
--window 30s \
--start 2026-04-01T00:00:00Z \
--end 2026-04-02T00:00:00Z \
--format json,markdown \
--output ./results/correlation
cd react2shell-scanner
docker compose -f docker/docker-compose.yml build
docker compose -f docker/docker-compose.yml run scanner-shell
flight-risk/
├── README.md
├── LICENSE
├── react2shell-scanner/
│ ├── bin/ # scan-github, scan-gcp, scan-all
│ ├── cli.py # Exploit testing CLI
│ ├── exploit.py # Exploitation logic
│ ├── utils.py # Shared utilities
│ ├── lib/ # Shell + Python helpers
│ ├── vuln-defs/ # Pluggable vulnerability definitions
│ ├── docker/ # Containerized scanning
│ ├── examples/ # Example scripts
│ ├── test-app/ # Vulnerable Next.js fixture
│ └── requirements.txt
├── gcp-ioc-scanner/
│ ├── gcp-ioc-scanner # IOC log scanner
│ ├── iocs/ # IOC pattern definitions
│ └── examples/ # Target config examples
└── gcp-log-correlator/
├── gcp-log-correlator # Event correlator
└── examples/ # Correlation examples
gh)gcloud)jqNur für autorisierte Nutzung. Dieses Toolkit enthält Exploit-Code. Verwenden Sie es nur gegen Systeme, die Ihnen gehören oder für die Sie eine ausdrückliche schriftliche Genehmigung zum Testen haben. Nicht autorisierte Nutzung kann gegen den Computer Fraud and Abuse Act (18 U.S.C. 1030) und gleichwertige Gesetze verstoßen.
MIT – siehe LICENSE.
| CVSS | 10.0 Critical |
| Vector | Network / Pre-auth / No interaction |
| React | 19.0.0 - 19.2.0 (fixed in 19.3.0) |
| Next.js | 14.3.0 - 15.3.5, 16.0.0 - 16.0.7 (fixed in 15.3.6, 16.0.8) |
| Ursache | Unsafe deserialization in React Flight protocol |
| Auswirkung | Full RCE as the application process user |