CVE-2022-45415
High · 7.8CVSS
7.8
EPSS
0.2%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A browser flaw could let a downloaded file keep a dangerous extension chosen by an attacker, making it easier for harmful programs to run on a computer.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The browser fails to validate or sanitize the HTML page title when constructing the filename for a downloaded file, permitting a malicious extension to be appended instead of forcing a safe .html suffix.
Why it matters to the business
Organizations face elevated risk of malware execution on endpoints because users may inadvertently run files that appear legitimate but contain harmful payloads, increasing incident response and remediation costs.
How an attack unfolds
An attacker crafts a web page whose title contains a filename with a dangerous extension, hosts the page, and tricks a victim into downloading the HTML file; when the victim later opens the saved file the operating system executes it with the attacker-chosen extension.
How to fix it
Upgrade to Firefox 107 or later. For tensorflow/tensorflow (GIT) apply commit 3a754740d5414e362512ee981eefba41561a63a6.
How to confirm the fix worked
Confirm the browser version is 107 or newer; verify that downloaded HTML files always receive a .html or .htm extension regardless of page title content.
Typical attack path
- attacker hosts malicious HTML page with crafted title
- victim is lured to the page and initiates download
- browser saves file using the malicious extension from the title
- victim or automated process executes the downloaded file
- malicious code runs with user privileges
How to detect it
Review download logs and file-system audit trails for HTML files saved with non-.html extensions originating from web browsers; correlate with subsequent process execution of those files.
What your security team should do
- Immediately update all Firefox installations to version 107 or newer
- Block execution of unexpected file types from the Downloads folder via application allow-listing
- Educate users to inspect file extensions before opening downloads
- Monitor EPSS trend and re-evaluate if exploitation maturity increases
The record
When downloading an HTML file, if the title of the page was formatted as a filename with a malicious extension, Firefox may have saved the file with that extension, leading to possible system compromise if the downloaded file was later ran. This vulnerability affects Firefox < 107.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 107.0+build2-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 107.0+build2-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs91 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 107.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2023-25736 An invalid downcast from `nsHTMLDocument` to `nsIContent` could have lead to undefined… Also affects firefox
- CVE-2023-25733 The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could… Also affects firefox
- CVE-2023-32210 Documents were incorrectly assuming an ordering of principal objects when ensuring we… Also affects firefox
- CVE-2023-32216 Memory safety bugs present in Firefox 112. Also affects firefox
- CVE-2023-32209 A maliciously crafted favicon could have led to an out of memory crash. Also affects firefox
- CVE-2023-32208 Service workers could reveal script base URL due to dynamic `import()`. Also affects firefox
- CVE-2023-29551 Memory safety bugs present in Firefox 111. Also affects firefox
- CVE-2023-32207 A missing delay in popup notifications could have made it possible for an attacker to… Also affects firefox