CVE-2018-5175 Cross-site scripting in Firefox
Attackers can bypass Content Security Policy restrictions in Firefox by injecting a reference to the internal require.js library, enabling script execution.
- 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-2018-5175?
CVE-2018-5175 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 11 Jun 2018. 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
A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'". If a target website contains an HTML injection flaw an attacker could inject a reference to a copy of the "require.js" library that is part of Firefox's Developer Tools, and then use a known technique using that library to bypass the CSP restrictions on executing injected scripts. This vulnerability affects Firefox < 60.
Weakness: CWE-79
Which versions are affected by CVE-2018-5175?
It affects 2 products.
Products include Canonical Ubuntu Linux, Mozilla Firefox.
How do I fix CVE-2018-5175?
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-2018-5175 being exploited?
There is no known exploitation of CVE-2018-5175 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as GHSA-c5vx-c657-hmcm, UBUNTU-CVE-2018-5175.