CVE-2018-5167 Cross-site scripting in Firefox
Attackers can trick users into clicking malicious chrome or javascript links in Firefox console/debugger, potentially executing code or bypassing security restrictions.
- 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-5167?
CVE-2018-5167 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 web console and JavaScript debugger do not sanitize all output that can be hyperlinked. Both will display "chrome:" links as active, clickable hyperlinks in their output. Web sites should not be able to directly link to internal chrome pages. Additionally, the JavaScript debugger will display "javascript:" links, which users could be tricked into clicking by malicious sites. This vulnerability affects Firefox < 60.
Weakness: CWE-20
Which versions are affected by CVE-2018-5167?
It affects 2 products.
Products include Canonical Ubuntu Linux, Mozilla Firefox.
How do I fix CVE-2018-5167?
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-5167 being exploited?
There is no known exploitation of CVE-2018-5167 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as GHSA-f8v9-9j4r-5fw9, UBUNTU-CVE-2018-5167.