cve/2018/CVE-2018-5175.md

22 lines
1.2 KiB
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2018-5175](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-5175)
![](https://img.shields.io/static/v1?label=Product&message=Firefox&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%2060%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Universal%20CSP%20bypass%20on%20sites%20using%20strict-dynamic%20in%20their%20policies&color=brighgreen)
### 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.
### POC
#### Reference
- https://bugzilla.mozilla.org/show_bug.cgi?id=1432358
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/cranelab/webapp-tech
- https://github.com/lnick2023/nicenice
- https://github.com/qazbnm456/awesome-cve-poc
- https://github.com/xbl3/awesome-cve-poc_qazbnm456