module

osCommerce Installer Unauthenticated Code Execution

Disclosed
Apr 30, 2018
Created
Jun 14, 2018

Description

If the /install/ directory was not removed, it is possible for an unauthenticated
attacker to run the "install_4.php" script, which will create the configuration
file for the installation. This allows the attacker to inject PHP code into the
configuration file and execute it.

Authors

Simon Scannell
Daniel Teixeira

Platform

PHP

Architectures

php

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/oscommerce_installer_unauth_code_exec
msf exploit(oscommerce_installer_unauth_code_exec) > show targets
...targets...
msf exploit(oscommerce_installer_unauth_code_exec) > set TARGET < target-id >
msf exploit(oscommerce_installer_unauth_code_exec) > show options
...show and set options...
msf exploit(oscommerce_installer_unauth_code_exec) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.