CVE-2018-5175
published 2018-06-11CVE-2018-5175: 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…
PriorityP426medium6.1CVSS 3.0
AVNACLPRNUIRSCCLILAN
EPSS
1.45%
70.3th percentile
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.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | firefox | < firefox 60.0-1 (sid) | firefox 60.0-1 (sid) |
| mozilla | firefox | < 60.0 | 60.0 |
| mozilla | firefox | >= 0 < 60.0+build2-0ubuntu0.14.04.1 | 60.0+build2-0ubuntu0.14.04.1 |
| mozilla | firefox | >= 0 < 60.0.1+build2-0ubuntu0.14.04.1 | 60.0.1+build2-0ubuntu0.14.04.1 |
| mozilla | firefox | >= 0 < 60.0+build2-0ubuntu0.16.04.1 | 60.0+build2-0ubuntu0.16.04.1 |
| mozilla | firefox | >= 0 < 60.0.1+build2-0ubuntu0.16.04.1 | 60.0.1+build2-0ubuntu0.16.04.1 |
| mozilla | firefox | >= 0 < 60.0+build2-0ubuntu1 | 60.0+build2-0ubuntu1 |
| mozilla | firefox | >= 0 < 60.0.1+build2-0ubuntu0.18.04.1 | 60.0.1+build2-0ubuntu0.18.04.1 |
| mozilla | firefox | >= unspecified < 60 | 60 |
CVSS provenance
nvdv3.06.1MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
osv9.8CRITICAL
vendor_ubuntu9.8CRITICAL
vendor_debian6.1MEDIUM
vendor_redhat6.1MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Firefox regression
vendor_ubuntu·2018-05-18·CVSS 9.8
[CRITICAL] Firefox regression
Title: Firefox regression
Summary: USN-3645-1 caused a regression in Firefox.
USN-3645-1 fixed vulnerabilities in Firefox. The update caused an issue
where users experienced long UI pauses in some circumsances. This update
fixes the problem.
We apologize for the inconvenience.
Original advisory details:
Multiple security issues were discovered in Firefox. If a user were
tricked in to opening a specially crafted website, an attacker could
potentially exploit these to cause a denial of service via application
crash, bypass same-origin restrictions, conduct cross-site scripting (XSS)
attacks, install lightweight themes without user interaction, spoof the
filename in the downloads panel, or execute arbitrary code.
(CVE-2018-5150, CVE-2018-5151, CVE-2018-5153, CVE-2018-5154,
CVE-2018-5155,
Ubuntu
Firefox vulnerabilities
vendor_ubuntu·2018-05-11·CVSS 9.8
CVE-2018-5150 [CRITICAL] Firefox vulnerabilities
Title: Firefox vulnerabilities
Summary: Firefox could be made to crash or run programs as your login if it
opened a malicious website.
Multiple security issues were discovered in Firefox. If a user were
tricked in to opening a specially crafted website, an attacker could
potentially exploit these to cause a denial of service via application
crash, bypass same-origin restrictions, conduct cross-site scripting (XSS)
attacks, install lightweight themes without user interaction, spoof the
filename in the downloads panel, or execute arbitrary code.
(CVE-2018-5150, CVE-2018-5151, CVE-2018-5153, CVE-2018-5154,
CVE-2018-5155, CVE-2018-5157, CVE-2018-5158, CVE-2018-5159, CVE-2018-5160,
CVE-2018-5163, CVE-2018-5164, CVE-2018-5168, CVE-2018-5173, CVE-2018-5175,
CVE-2018-5177, CVE-2018-5180)
Multip
Red Hat
Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
vendor_redhat·2018-05-09·CVSS 6.1
CVE-2018-5175 [MEDIUM] CWE-79 Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
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.
Package: firefox (Red Hat Enterprise Linux 6) - Not affected
Package: thunderbird (Red Hat Enterprise Linux 6) - Not affected
Package: firefox (Red Hat Enterprise Linux 7) - Not affected
Package: thunderbird (Red Hat Enterprise Linux 7) - Not affected
Debian
CVE-2018-5175: firefox - A mechanism to bypass Content Security Policy (CSP) protections on sites that ha...
vendor_debian·2018·CVSS 6.1
CVE-2018-5175 [MEDIUM] CVE-2018-5175: firefox - A mechanism to bypass Content Security Policy (CSP) protections on sites that ha...
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.
Scope: local
sid: resolved (fixed in 60.0-1)
GHSA
GHSA-c5vx-c657-hmcm: A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'"
ghsa_unreviewed·2022-05-13
CVE-2018-5175 [MEDIUM] CWE-79 GHSA-c5vx-c657-hmcm: A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'"
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.
OSV
firefox regression
osv·2018-05-18·CVSS 9.8
[CRITICAL] firefox regression
firefox regression
USN-3645-1 fixed vulnerabilities in Firefox. The update caused an issue
where users experienced long UI pauses in some circumsances. This update
fixes the problem.
We apologize for the inconvenience.
Original advisory details:
Multiple security issues were discovered in Firefox. If a user were
tricked in to opening a specially crafted website, an attacker could
potentially exploit these to cause a denial of service via application
crash, bypass same-origin restrictions, conduct cross-site scripting (XSS)
attacks, install lightweight themes without user interaction, spoof the
filename in the downloads panel, or execute arbitrary code.
(CVE-2018-5150, CVE-2018-5151, CVE-2018-5153, CVE-2018-5154,
CVE-2018-5155, CVE-2018-5157, CVE-2018-5158, CVE-2018-5159, CVE-2018-5160,
OSV
firefox vulnerabilities
osv·2018-05-11·CVSS 9.8
CVE-2018-5150 [CRITICAL] firefox vulnerabilities
firefox vulnerabilities
Multiple security issues were discovered in Firefox. If a user were
tricked in to opening a specially crafted website, an attacker could
potentially exploit these to cause a denial of service via application
crash, bypass same-origin restrictions, conduct cross-site scripting (XSS)
attacks, install lightweight themes without user interaction, spoof the
filename in the downloads panel, or execute arbitrary code.
(CVE-2018-5150, CVE-2018-5151, CVE-2018-5153, CVE-2018-5154,
CVE-2018-5155, CVE-2018-5157, CVE-2018-5158, CVE-2018-5159, CVE-2018-5160,
CVE-2018-5163, CVE-2018-5164, CVE-2018-5168, CVE-2018-5173, CVE-2018-5175,
CVE-2018-5177, CVE-2018-5180)
Multiple security issues were discovered with WebExtensions. If a user
were tricked in to installing a specially craft
OSV
CVE-2018-5175: A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'"
osv·2018-05-11·CVSS 6.1
CVE-2018-5175 [MEDIUM] CVE-2018-5175: A mechanism to bypass Content Security Policy (CSP) protections on sites that have a "script-src" policy of "'strict-dynamic'"
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.
No detection rules found.
No public exploits indexed.
Bugzilla
Reflected XSS on resource:// by accessing error page templates in Fenix directly
bugzilla·2020-08-14
Reflected XSS on resource:// by accessing error page templates in Fenix directly
Reflected XSS on resource:// by accessing error page templates in Fenix directly
Created attachment 9169943
resource_xss_address_bar_spoofing.gif
Bug 1657055 was fixed by escaping untrusted data in Kotlin-side code (below).
https://bugzilla.mozilla.org/attachment.cgi?id=9168100&action=diff
But raw `innerHTML`s in the collesponding JavaScript-side code were kept remained (below).
https://github.com/mozilla-mobile/android-components/blob/d62f28374d7daf69991474a8f784c7cf8d556fce/components/browser/errorpages/src/main/assets/errorPageScripts.js#L23
These `innerHTML`s can still be used for XSS on `resource:` origin by loading templates directly (like below).
resource://android/assets/high_risk_error_pages.html?&title=XSS
resource://android/assets/low_and_medium_risk_error_pages.html?&title=
Bugzilla
CVE-2018-5175 Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
bugzilla·2018-05-09·CVSS 6.1
CVE-2018-5175 [MEDIUM] CVE-2018-5175 Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
CVE-2018-5175 Mozilla: Universal CSP bypass on sites using strict-dynamic in their policies
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.
External Reference:
https://www.mozilla.org/en-US/security/advisories/mfsa2018-11/#CVE-2018-5175
Discussion:
Acknowledgments:
Name: the Mozilla project
Upstream: Masato Kinugawa
http://www.securityfocus.com/bid/104139http://www.securitytracker.com/id/1040896https://bugzilla.mozilla.org/show_bug.cgi?id=1432358https://usn.ubuntu.com/3645-1/https://www.mozilla.org/security/advisories/mfsa2018-11/http://www.securityfocus.com/bid/104139http://www.securitytracker.com/id/1040896https://bugzilla.mozilla.org/show_bug.cgi?id=1432358https://usn.ubuntu.com/3645-1/https://www.mozilla.org/security/advisories/mfsa2018-11/
2018-06-11
Published