PT-2024-18929 · Opencart · Opencart
Calum Hutton
·
Published
2024-06-21
·
Updated
2025-01-14
·
CVE-2024-21516
CVSS v3.1
4.7
Medium
| Vector | AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
opencart/opencart versions 4.0.0.0 through 4.1.0.0
Description
A reflected XSS issue was identified in the
directory parameter of the admin common/filemanager.list route. An attacker could obtain a user's token by tricking the user to click on a maliciously crafted URL. The user is then prompted to login and redirected again upon authentication with the payload automatically executing. If the attacked user has admin privileges, this vulnerability could be used as the start of a chain of exploits like Zip Slip or arbitrary file write vulnerabilities in the admin functionality. This is only exploitable if the attacker knows the name or path of the admin directory, which is "admin" by default but has a warning to rename it in the dashboard.Recommendations
For versions 4.0.0.0 through 4.1.0.0, consider disabling the admin common/filemanager.list route until a complete fix is available. Restrict access to the admin directory to minimize the risk of exploitation. Avoid using the
directory parameter in the affected route until the issue is resolved. As a temporary workaround, remove the redirect post admin login to prevent an attacker from controlling the redirect. However, note that the fix for this vulnerability is incomplete, and it is still possible to exploit this issue in admin if the user is authenticated as an admin already. At the moment, there is no information about a newer version that contains a complete fix for this vulnerability.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Opencart