Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-8388 Overview
CVE-2024-8388 is a user interface spoofing vulnerability affecting Mozilla Firefox for Android versions prior to 130. The flaw allows multiple prompts and panels from both Firefox and the Android operating system to obscure the fullscreen transition notification. This notification was originally introduced to address CVE-2023-6870 in Firefox 121. An attacker can leverage the sudden appearance of a prompt to distract the user, hiding the visual cue that the browser has entered fullscreen mode. The underlying weakness is tracked as CWE-1021: Improper Restriction of Rendered UI Layers or Frames. Only Firefox on Android is affected; desktop and other mobile platforms are not impacted.
Critical Impact
Attackers can spoof the Firefox browser UI on Android by concealing the fullscreen transition notification, enabling convincing phishing and credential-harvesting scenarios.
Affected Products
- Mozilla Firefox for Android versions prior to 130
- Google Android operating system (as the host platform exposing prompts and panels)
- Firefox-based Android components relying on the fullscreen notification introduced in Firefox 121
Discovery Timeline
- 2024-09-03 - CVE-2024-8388 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-8388
Vulnerability Analysis
The vulnerability is a UI redress and spoofing issue classified under [CWE-1021]. Firefox 121 introduced a visible notification whenever a page transitioned into fullscreen mode. That notification was intended to prevent attackers from using fullscreen content to impersonate operating system UI, address bars, or security prompts. On Android, both Firefox-rendered prompts and native Android panels can appear on top of this transition notification. When a prompt appears at the same moment fullscreen activates, the user's attention shifts to the prompt and the fullscreen cue is missed. The attacker then controls the entire screen area and can render fake browser chrome, fabricated address bars, or counterfeit login dialogs. Confidentiality is not directly impacted, but integrity of the user interface is weakened enough to enable follow-on social engineering.
Root Cause
The root cause is that the fullscreen transition notification in Firefox for Android was rendered using a UI layer that could be covered by other prompts and panels. The notification lacked guaranteed z-order precedence over system and application overlays. Mozilla's fix reimplements the notification using the Android Toast mechanism, which renders above most application chrome and is harder to obscure.
Attack Vector
Exploitation requires a user to visit a malicious or compromised web page in a vulnerable Firefox for Android build. The page requests fullscreen through the standard Element.requestFullscreen() Web API. The attacker simultaneously triggers a prompt, such as a permission request, download dialog, or system notification, to draw the user's attention away from the fullscreen cue. Once fullscreen is active, the page draws spoofed browser UI, including a counterfeit URL bar, lock icon, and native-looking dialogs that can harvest credentials or financial data. No authentication, elevated privileges, or user interaction beyond normal browsing are required. See the Mozilla Security Advisory MFSA-2024-39 and Mozilla Bug Report #1902996 for additional technical context.
No verified proof-of-concept code is available for CVE-2024-8388.
Refer to Mozilla's bug tracker for reproduction details.
Detection Methods for CVE-2024-8388
Indicators of Compromise
- Web pages that call requestFullscreen() immediately followed by permission or download prompts
- User reports of unexpected credential dialogs, address bars, or system-style popups while browsing in Firefox for Android
- Mobile browser telemetry showing frequent fullscreen transitions on untrusted or newly registered domains
Detection Strategies
- Inspect mobile web proxy and DNS logs for traffic to domains that correlate with reported phishing or credential-theft incidents against Android users
- Review Firefox for Android version inventory across managed devices and flag any build earlier than 130
- Correlate help desk tickets about suspicious in-browser prompts with the user's installed Firefox version
Monitoring Recommendations
- Enroll Android devices in a mobile device management (MDM) platform and continuously monitor installed Firefox versions
- Monitor user authentication logs for credential submissions originating from Android user agents immediately after visits to new or low-reputation sites
- Track newly registered domains serving pages that invoke fullscreen APIs on mobile user agents
How to Mitigate CVE-2024-8388
Immediate Actions Required
- Upgrade Firefox for Android to version 130 or later on all managed and personal devices
- Enforce a minimum Firefox version policy through your MDM solution and block non-compliant devices from sensitive applications
- Communicate to users that legitimate browser security prompts will not appear only after a fullscreen transition on an untrusted site
Patch Information
Mozilla addressed CVE-2024-8388 in Firefox 130 by reimplementing the fullscreen transition notification using the Android Toast feature. The Android Toast API renders overlays that sit above application UI, preventing prompts and panels from obscuring the warning. See Mozilla Security Advisory MFSA-2024-39 and the associated Mozilla bug list for the full set of fixed issues.
Workarounds
- Instruct users to exit fullscreen with the Android back gesture whenever a prompt appears unexpectedly on an untrusted site
- Restrict installation of browsers other than fully patched Firefox or vendor-approved alternatives on corporate Android devices
- Deploy a web filtering gateway that blocks access to known phishing infrastructure on mobile networks
# Example MDM compliance check for Firefox for Android version
adb shell dumpsys package org.mozilla.firefox | grep versionName
# Expected output should show versionName=130.0 or later
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

