CVE-2024-21515
PHP vulnerability analysis and mitigation

Overview

A reflected XSS vulnerability (CVE-2024-21515) was discovered in OpenCart versions 4.0.0.0 and later. The vulnerability exists in the filename parameter of the admin tool/log route. This security issue was disclosed on June 17, 2024, and affects the OpenCart e-commerce platform (Snyk Advisory).

Technical details

The vulnerability is a reflected cross-site scripting (XSS) issue that occurs in the admin tool/log route through the filename parameter. An attacker can craft a malicious URL that, when clicked, triggers the XSS payload. The vulnerability is particularly concerning as it can be used to obtain a user's token and execute automatically upon authentication. The attack requires the attacker to know the admin directory path, which is 'admin' by default (Snyk Advisory, NVD).

Impact

If successfully exploited, the vulnerability allows attackers to obtain a user's token and potentially execute arbitrary JavaScript code in the victim's browser. The impact is more severe if the attacked user has admin privileges, as it could be used as an entry point for further exploits, including Zip Slip or arbitrary file write vulnerabilities in the admin functionality (Snyk Advisory).

Mitigation and workarounds

The vulnerability has been partially fixed by removing the redirect functionality, making it impossible for attackers to control the redirect post admin login. However, the fix is incomplete as the issue can still be exploited if the user is already authenticated as an admin. Users are advised to rename their admin directory from the default 'admin' value, as there is a dashboard warning suggesting this action (GitHub Commit, Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management