
script nmap per scansionare la vulnerabilità react2shell (CVE-2025-55182 e CVE-2025-66478)
Autore: Saad Ayady
Licenza: Come Nmap (open source)
Categoria: Sicuro, Scoperta, Rilevamento Vulnerabilità
Stato: Solo rilevamento, non sfruttabile
React2Shell PRO v2 è uno script NSE avanzato per Nmap per rilevare potenziali componenti server React (RSC) vulnerabili ed endpoint SSR (Server-Side Rendering) non sicuri.
Si concentra su:
Lo script calcola un punteggio ponderato per stimare i livelli di rischio e genera un report conciso con raccomandazioni.
sudo cp react2shell.lua /usr/share/nmap/scripts/
sudo nmap --script-updatedb
nmap -p 80,443 --script react2shell <target-ip>
============================================================
REACT2SHELL PRO DETECTOR v2 - RESULTS
============================================================
Target: 192.168.1.10:3000
Findings: 3 | Total Score: 18
Detected React Version: 18.2.0
🟡 RISK: MEDIUM
----------------------------------------
Finding #1
Endpoint: /rsc [GET]
Status: 200
Score: 10 (total)
Snippet: {"$$typeof":"react.element","type":"div","props":{"children":"Test"}...
...
============================================================
RECOMMENDATIONS:
- Update React to latest stable (if applicable)
- Audit and sanitize server-side deserialization paths
- Limit public exposure of bundle/package endpoints
- Monitor and rate-limit suspicious POST payloads
============================================================
/, /index, /home, /app/api, /api/v1, /api/v2, /graphql, /graphiql/render, /ssr, /_render, /_ssr/rsc, /_rsc, /_flight, /react, /_react, /server/_next, /_next/data, /_next/static, /_next/server/test, /debug, /health, /status, /metrics/api, /graphql, /rsc, /_flight, /render.. Pull request e suggerimenti benvenuti. . Assicurati che il comportamento di solo rilevamento rimanga intatto. . Mantieni la compatibilità con NSE e la gestione sicura di HTTP.
| Punteggio Totale | Livello di Rischio | Emoji |
|---|
| 0-9 | BASSO | 🟢 |
| 10-19 | MEDIO | 🟡 |
| 20-29 | ALTO | 🟠 |
| 30+ | CRITICO | 🔴 |