Medium

Cross site scripting in opencart

  • Disclosed: 22.06.2024
  • Updated: 11.10.2026 10:22

This affects versions of the package opencart/opencart from 4.0.0.0. A reflected XSS issue was identified in the directory parameter of 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.

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package opencart/opencart >= 4.0.0.0 no fix

References

CVSS score 4.2/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Composer
Package
opencart/opencart
Disclosed
22.06.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-pqhq-77pw-763c - CC BY 4.0

Vulnerability history: opencart/opencart

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (17) in the archive
Total entries
17
First → latest
05.2021 07.2024
Without a fix
16
Exploited in attacks
0

Severity breakdown

  • High 6
  • Medium 10
  • Low 1

Disclosures per year

  1. 2021: 1
  2. 2022: 8
  3. 2023: 1
  4. 2024: 7
  5. 2025: 0
  6. 2026: 0
Severity:
  1. High · 7.2 CVE-2024-21518 >= 4.0.0.0 no fix
  2. High · 6.6 CVE-2024-21519 >= 4.0.0.0 no fix
  3. Cross site scripting in opencart this entry
    Medium · 4.2 CVE-2024-21516 >= 4.0.0.0 no fix
  4. High · 7.4 CVE-2024-21514 <= 3.0.3.9 no fix
  5. High · 8.1 CVE-2023-2315 >= 4.0.0.0, < 4.0.2.3 4.0.2.3
  6. High · 8.0 CVE-2018-11494 <= 3.0.2.0 no fix
  7. High · 8.8 CVE-2018-13067 <= 3.0.2.0 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.