CVE-2018-5176 Cross-site scripting in Firefox
Attackers can execute malicious JavaScript via crafted JSON links in Firefox, potentially stealing cookies and tokens.
- 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-5176?
CVE-2018-5176 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
The JSON Viewer displays clickable hyperlinks for strings that are parseable as URLs, including "javascript:" links. If a JSON file contains malicious JavaScript script embedded as "javascript:" links, users may be tricked into clicking and running this code in the context of the JSON Viewer. This can allow for the theft of cookies and authorization tokens which are accessible to that context. This vulnerability affects Firefox < 60.
Weakness: CWE-20
Which versions are affected by CVE-2018-5176?
It affects 2 products.
Products include Canonical Ubuntu Linux, Mozilla Firefox.
How do I fix CVE-2018-5176?
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-5176 being exploited?
There is no known exploitation of CVE-2018-5176 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as GHSA-x4p5-q86p-74vp, UBUNTU-CVE-2018-5176.