CVE-2024-21515
JSON

2.1low

Cross site scripting in opencart

Severity
2.1low CVSS:4.0 by snyk
Exploit likelihood
0.37% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-qx44-885h-7p56BIT-OPENCART-2024-21515

Description

This affects versions of the package opencart/opencart from 4.0.0.0. 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. **Notes:** 1) This is only exploitable if the attacker knows the name or path of the admin directory. The name of the directory is "admin" by default but there is a pop-up in the dashboard warning users to rename it. 2) The fix for this vulnerability is incomplete. The redirect is removed so that it is not possible for an attacker to control the redirect post admin login anymore, but it is still possible to exploit this issue in admin if the user is authenticated as an admin already.

Affected

Product or packageVersionsReported by
opencart/opencartfrom 4.0.0.0 before *CVE List
opencart opencartfrom 4.0.0.0 before *, from 4.0.0.0CVE List, NVD
opencart/opencart (Packagist)from 4.0.0.0GitHub Advisory Database
opencart (Bitnami)from 4.0.0-0Bitnami Vulnerability Database

All scores

snyk2.1low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
snyk4.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
GitHub4.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

This affects versions of the package opencart/opencart from 4.0.0.0. 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. **Notes:** 1) This is only exploitable if the attacker knows the name or path of the admin directory. The name of the directory is "admin" by default but there is a pop-up in the dashboard warning users to rename it. 2) The fix for this vulnerability is incomplete. The redirect is removed so that it is not possible for an attacker to control the redirect post admin login anymore, but it is still possible to exploit this issue in admin if the user is authenticated as an admin already.

NVD (es)

Esto afecta a las versiones del paquete opencart/opencart desde 4.0.0.0. Se identificó un problema XSS reflejado en el parámetro de nombre de archivo de la herramienta de administración/ruta de registro. Un atacante podría obtener el token de un usuario engañándolo para que haga clic en una URL creada con fines malintencionados. Luego se solicita al usuario que inicie sesión y se le redirige nuevamente tras la autenticación y la carga útil se ejecuta automáticamente. Si el usuario atacado tiene privilegios de administrador, esta vulnerabilidad podría usarse como el inicio de una cadena de exploits como Zip Slip o vulnerabilidades de escritura de archivos arbitrarios en la funcionalidad de administración. **Notas:** 1) Esto solo se puede explotar si el atacante conoce el nombre o la ruta del directorio de administración. El nombre del directorio es "admin" de forma predeterminada, pero hay una ventana emergente en el panel que advierte a los usuarios que le cambien el nombre. 2) La solución para esta vulnerabilidad está incompleta. El redireccionamiento se elimina para que un atacante ya no pueda controlar el inicio de sesión del administrador posterior al redireccionamiento, pero aún es posible explotar este problema en el administrador si el usuario ya está autenticado como administrador.

Bitnami Vulnerability Database

This affects versions of the package opencart/opencart from 4.0.0-0. 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.

Notes:

  1. This is only exploitable if the attacker knows the name or path of the admin directory. The name of the directory is "admin" by default but there is a pop-up in the dashboard warning users to rename it.

  2. The fix for this vulnerability is incomplete. The redirect is removed so that it is not possible for an attacker to control the redirect post admin login anymore, but it is still possible to exploit this issue in admin if the user is authenticated as an admin already.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21515 changed 2025-01-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-qx44-885h-7p56 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21515 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-OPENCART-2024-21515 changed 2025-04-14Apache-2.0