PT-2024-18928 · Opencart · Opencart

Calum Hutton

·

Published

2024-06-21

·

Updated

2025-01-14

·

CVE-2024-21515

CVSS v3.1

4.7

Medium

VectorAV: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 version 4.0.0.0
Description A reflected XSS issue was identified in the filename parameter of the "admin tool/log" 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 As a temporary workaround, consider restricting access to the "admin tool/log" route until a complete fix is available. For version 4.0.0.0, the redirect has been removed, but it is still possible to exploit this issue in admin if the user is authenticated as an admin already, so avoid using the filename parameter in the affected route until the issue is fully resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BIT-OPENCART-2024-21515
CVE-2024-21515
GHSA-QX44-885H-7P56

Affected Products

Opencart