CyberRota Analysis
AI-GeneratedOpenCart extensions are vulnerable due to improper validation during the extraction of .ocmod.zip files, allowing attackers to exploit path traversal sequences to write files outside the intended directory. This could lead to the installation of malicious files, such as PHP web shells, directly into the webroot, compromising the integrity of the web application. E-commerce platforms using OpenCart should prioritize addressing this vulnerability to prevent potential exploitation and ensure the security of their systems.
Original NVD Description
OpenCart extensions are uploaded as zip files with .ocmod.zip extensions. Upon installation, the OpenCart v4.2.0.0 extension installer extracts these zip files, but does not validate that the extracted paths stay inside the intended extraction directory. An attacker can craft a malicious extension containing file path traversal sequences, such as ../. With this vulnerability, an attacker can write files, such as a PHP web shell, into the webroot directory.