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
EPSS: 0.025 (83.3th percentile) — read the EPSS interpretation.
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.
Affected products
- Oscommerce — versions 2.3.4.1
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (x_refsource_CONFIRM, Third Party Advisory)
Frequently asked questions
- What is CVE-2018-18572?
- CVE-2018-18572 is a high-severity vulnerability in Oscommerce, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 7.2/10. Published 2019-08-22.
- How severe is CVE-2018-18572?
- High severity. CVSS v3 base score is 7.2 out of 10.
- Is CVE-2018-18572 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.