
react2shell (CVE-2025-55182 및 CVE-2025-66478) 취약점을 스캔하는 nmap 스크립트
저자: Saad Ayady
라이선스: Nmap과 동일 (오픈 소스)
카테고리: 안전, 발견, 취약점 탐지
상태: 탐지 전용, 비악용
React2Shell PRO v2는 잠재적으로 취약한 React 서버 컴포넌트(RSC) 및 안전하지 않은 SSR(서버 사이드 렌더링) 엔드포인트를 탐지하기 위한 고급 Nmap NSE 스크립트입니다.
다음에 중점을 둡니다:
이 스크립트는 가중치 점수를 계산하여 위험 수준을 추정하고 권장 사항이 포함된 간결한 보고서를 생성합니다.
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에서만 테스트됩니다.| 총 점수 | 위험 수준 | 아이콘 |
|---|
| 0-9 | 낮음 | 🟢 |
| 10-19 | 중간 | 🟡 |
| 20-29 | 높음 | 🟠 |
| 30+ | 심각 | 🔴 |