CVE-2024-7524 Cross-site scripting in Firefox
Attackers can achieve XSS and bypass CSP strict-dynamic via DOM Clobbering in Firefox web-compatibility shims.
- 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
- Available
What is CVE-2024-7524?
CVE-2024-7524 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 6 Aug 2024. 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
Firefox adds web-compatibility shims in place of some tracking scripts blocked by Enhanced Tracking Protection. On a site protected by Content Security Policy in "strict-dynamic" mode, an attacker able to inject an HTML element could have used a DOM Clobbering attack on some of the shims and achieved XSS, bypassing the CSP strict-dynamic protection. This vulnerability affects Firefox < 129, Firefox ESR < 115.14, and Firefox ESR < 128.1.
Weakness: CWE-79
Which versions are affected by CVE-2024-7524?
It affects 2 products.
Products include Mozilla Firefox, Mozilla Firefox Esr.
How do I fix CVE-2024-7524?
Upgrade to a fixed version.
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-2024-7524 being exploited?
There is no known exploitation of CVE-2024-7524 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as DEBIAN-CVE-2024-7524, GHSA-7m9h-4qg6-4hmh, OESA-2024-2099, UBUNTU-CVE-2024-7524.