
Bash exploit for CVE-2015-1397 (Magento Shoplift) that injects crafted SQL payloads to create an admin user on vulnerable Magento stores.
This script exploits the CVE-2015-1397 vulnerability in Magento, commonly referred to as the Magento Shoplift exploit. It allows an attacker to create a new admin user in the Magento database by injecting SQL payloads.
Originally written in Python by Manish Kishan Tanwar (error1046), this version has been converted to Bash with user-friendly input prompts for credentials by Divine Clown (0xDTC).
bash, curl, and base64 utilities installed.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
Input Validation:
http:// or https://.Payload Construction:
___directive parameter containing an SQL query to insert a new admin user.Exploitation:
POST request to the vulnerable endpoint using curl.Response Handling:
http:// or https://.This script is intended for educational purposes only. Unauthorized use against systems you do not own or have permission to test is illegal and unethical. The author and contributors are not responsible for any misuse of this tool.
Special thanks to: