Horizon Alert
Summary of the vulnerability and why it matters
A security vulnerability has been identified in the OpenMage magento-lts platform that could allow unauthenticated attackers to upload malicious files and execute code on affected servers. This issue stems from an incomplete list of disallowed file extensions within the platform's file handling. At a high level, this could pose a risk to the integrity and availability of systems running this e-commerce software.
- Attackers can upload malicious files.
- Critical function allows code execution.
- Confirm relevance and exposure.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker can leverage this vulnerability by uploading a malicious `.phar` file through a product's custom file option. The system's failure to properly block extensions like `phar`, `php8`, and `phps` allows this file to be saved to a predictable location on the server. If the server is configured to process `.phar` files as PHP and serve them directly from that directory, the attacker can then request the uploaded file to achieve code execution.
- Upload malicious file via product option.
- System fails to block dangerous file extensions.
- Enables unauthenticated remote code execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to execute arbitrary code on servers running affected versions of OpenMage. This could occur when a product's custom file option is used to upload a specially crafted ".phar" file, which is then directly requested and processed by the server as PHP code. The impact is a complete compromise of the server.
- Server code execution risk.
- Unrestricted file upload allows code.
- Full server compromise possible.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability, an unrestricted file upload in OpenMage, likely impacts teams responsible for e-commerce platforms and their associated infrastructure. The immediate practical step is to identify all instances of the affected software, determine their exposure and business criticality, and then assign an owner for remediation planning.
- E-commerce platform owners should address.
- Verify reachability and business criticality first.
- Plan remediation and coordinate with vendors.