CVE-2021-24452 W3 Total Cache < 2.1.5 - Reflected XSS in Extensions Page (JS Context)
Reflected XSS in W3 Total Cache allows attackers to execute malicious JavaScript in admin browsers, potentially leading to site compromise.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24452?
CVE-2021-24452 is a medium-severity cross-site scripting vulnerability in BoldGrid W3 Total Cache, published on 19 Jul 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The W3 Total Cache WordPress plugin before 2.1.5 was affected by a reflected Cross-Site Scripting (XSS) issue within the "extension" parameter in the Extensions dashboard, when the 'Anonymously track usage to improve product quality' setting is enabled, as the parameter is output in a JavaScript context without proper escaping. This could allow an attacker, who can convince an authenticated admin into clicking a link, to run malicious JavaScript within the user's web browser, which could lead to full site compromise.
Weakness: CWE-79
Which versions are affected by CVE-2021-24452?
It affects 1 product.
Products include Boldgrid W3 Total Cache.
How do I fix CVE-2021-24452?
No fix has been published for CVE-2021-24452 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-24452 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24452 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in BoldGrid W3 Total Cache
- CVE-2024-12365 W3 Total Cache <= 2.8.1 - Authenticated (Subscriber+) Missing Authorization to Server-Side Request Forgery
- CVE-2012-6077 Information disclosure in Total Cache
- CVE-2012-6078 Information disclosure in Total Cache
- CVE-2012-6079 Information disclosure in Total Cache
- CVE-2019-6715 Path traversal in n/a
Sources
Also known as GHSA-w3f9-qvj2-72hf.