
React2Shell RCE 취약점(CVE-2025-55182)에 대한 익스플로잇 코드, React Server Components 19.0.0-19.2.0에 영향을 미침. 안전하지 않은 역직렬화를 악용하여 인증되지 않은 원격 코드 실행을 수행합니다.
React Server Components (RSC) / Next.js 원격 코드 실행 취약점에 대한 개념 증명(PoC)입니다.
React Server Components 버전 19.0.0, 19.1.0, 19.1.1, 19.2.0과 다음 패키지(react-server-dom-parcel, react-server-dom-turbopack, react-server-dom-webpack)에서 사전 인증 원격 코드 실행 취약점이 존재합니다. 취약한 코드는 Server Function 엔드포인트로 전송된 HTTP 요청의 페이로드를 안전하지 않게 역직렬화합니다.
⚠️ 경고: 이 도구는 승인된 보안 테스트 전용입니다.
go build -o exploit exploit.go
또는 직접 실행:
go run exploit.go
./exploit -u <URL> -c <command>
-u - 대상 URL (필수)-c - 실행할 명령어 (기본값: id)# Basic usage
./exploit -u https://vulnerable -c "whoami"
# Execute different command
./exploit -u https://vulnerable -c "ls -la"
# Run directly with go
go run exploit.go -u https://vulnerable -c "pwd"

도구 출력: