Script execution via OBJECT data URL CSP bypass
Published May 26, 2020 · Updated Aug 4, 2024
Content Security Policy bypass in Mozilla Firefox before 76 allows remote attackers to run blocked scripts through crafted web content. When a page creates a data: URL document in an OBJECT element, Firefox fails to copy the embedding context's CSP into the opaque-origin document. Loading attacker-controlled content is sufficient; scripts execute inside a unique opaque origin, limiting access to the embedding page's origin.
Summary
What happened
Content Security Policy bypass in Mozilla Firefox before 76 allows remote attackers to run blocked scripts through crafted web content. When a page creates a data: URL document in an OBJECT element, Firefox fails to copy the embedding context's CSP into the opaque-origin document. Loading attacker-controlled content is sufficient; scripts execute inside a unique opaque origin, limiting access to the embedding page's origin.
The record
- CVE
- CVE-2020-12391
- Published
- May 26, 2020
- Updated
- Aug 4, 2024
- Vendor
- Mozilla
- Product
- Firefox
- Classifications
- CWE-863, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 26, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <76
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Mozilla Bugzilla CSP-bypass reproductionproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo