Arbitrary file upload in Oscommerce
CVE-2018-18572
osCommerce 2.3.4.1 has an incomplete '.htaccess' for blacklist filtering in the "product" page. Because of this filter, script files with certain PHP-related extensions (such as .phtml and .php5) didn't execute in the application. But this filter didn't prevent the '.pht' extension. Thus, remote authenticated administrators can upload '.pht' files for arbitrary PHP code execution via a /catalog/admin/categories.php?cPath=&action=new_product URI.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.026, 85.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Oscommerce — versions 2.3.4.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (RajatSethi2001/FUSE, WSP-LAB/FUSE). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/osCommerce/oscommerce2/issues/631 (Third Party Advisory)