CS-Cart
CS-Cart is PHP shopping cart software. Older exposed installs may allow admin login with default credentials and authenticated RCE through public exploit tooling.
Discovery
Useful indicators:
80/tcp open http Apache httpd 2.2.4 ((Ubuntu) PHP/5.2.3-1ubuntu6)
|_http-title: CS-Cart. Powerful PHP shopping cart softwareWhatWeb may show:
Apache[2.2.4], CS-Cart, PHP[5.2.3-1ubuntu6], PasswordField[password], Title[CS-Cart. Powerful PHP shopping cart software]Useful application paths:
http://TARGET/index.php?target=sitemap
http://TARGET/index.php?target=profiles&mode=updateDefault Admin Login
Try the default admin credentials:
admin:adminAuthenticated RCE
Public exploit used:
Start a listener:
Run the exploit with the working admin credentials:
Successful output:
Successful shell context:
Database Credentials
CS-Cart database credentials may be in config.php:
Connect locally from the target:
Useful database enumeration:
Last updated