Quantum Secular Labs / Blog / Advisories
CVE-2018-25114: A remote code execution vulnerability exists within osCommerce Online Merchant version 2.3.4.1 due to…
CVE-2018-25114 is rated critical with a CVSS v4.0 base score of 9.3. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.
Vulnerability description
A remote code execution vulnerability exists within osCommerce Online Merchant version 2.3.4.1 due to insecure default configuration and missing authentication in the installer workflow. By default, the /install/ directory remains accessible after installation. An unauthenticated attacker can invoke install_4.php, submit crafted POST data, and inject arbitrary PHP code into the configure.php file. When the application later includes this file, the injected payload is executed, resulting in full server-side compromise.
Severity breakdown
CVSS v4.0 9.3: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Attack vector: Network. Exploitable remotely over the network.
- Attack complexity: Low. No special conditions; the attack can be repeated reliably.
- Attack requirements: None. No deployment or execution conditions are needed.
- Privileges required: None. No account or prior access is needed.
- User interaction: None. No action from any user is needed.
- Confidentiality impact (vulnerable system): High. Total loss of confidentiality.
- Integrity impact (vulnerable system): High. Total loss of integrity.
- Availability impact (vulnerable system): High. Total loss of availability.
- Confidentiality impact (subsequent systems): None. No confidentiality impact beyond the vulnerable system.
- Integrity impact (subsequent systems): None. No integrity impact beyond the vulnerable system.
- Availability impact (subsequent systems): None. No availability impact beyond the vulnerable system.
Underlying weakness
CWE-94: Improper Control of Generation of Code
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-434: Unrestricted Upload of File with Dangerous Type
The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
Affected products
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/oscommerce_installer_unauth_code_exec.rb
- https://www.exploit-db.com/exploits/44374
- https://www.oscommerce.com/
- https://www.vulncheck.com/advisories/oscommerce-installer-unauth-config-file-injection-php-code-execution