Skip to content
UI spoofing Disclosed report Intermediate

Firefox for Android Entering Fullscreen Snackbar Notification Spoof using Dialogs or Text Selection Menu

Firefox for Android's fullscreen notification snackbar could be overlapped by the Android text selection menu, allowing a page to hide the warning that the browser had entered fullscreen mode. An attacker could use this to spoof the browser UI and trick a user into believing they were still in normal browsing mode.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 2.1 years
  • Paid in 2.1 years
  • Disclosed after 2.1 years

Created attachment 9218699 spoof.1.html

After invoke Element.requestFullScreen() method using JavaScript, Firefox Fenix will show fullscreen snackbar notification with message "Entering full screen mode" so that end user is aware (to prevent spoofing).

Surprisingly I found that Android text selection menu (from Android 6.0) able to overlap Firefox Fenix entering fullscreen snackbar. When user select text from the web, the text selection menu (e.g. Cut, Copy, Paste, Search, and Share) will overlap the Fenix snackbar notification.

On Chrome for Android, the fullscreen notification toast is shown in front of text selection menu, so spoofing/hiding the fullscreen notification toast is not possible.

Version tested:

  • Firefox Nightly 90.0a1 Build ID 20210424090050
  • Firefox 88.0.1 Build ID 20210426133657

Steps to Reproduce:

  1. Visit attached spoof.1.html
  2. Tap "Sign in with Google" input element
  3. Fullscreen notification overlapped by text selection menu

The original report as published on Mozilla's Bugzilla, by Irvan Kurniawan. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the fullscreen snackbar was rendered in a layer below the Android text selection menu, so the system menu drew on top of it.

Impact

A page could hide the fullscreen warning from the user, making UI spoofing possible; Chrome for Android was not affected because its toast appears above the selection menu.

What the attacker needed

Firefox for Android; victim selects text on the page; page enters fullscreen mode

How it was found

  1. Open the attached test page in Firefox for Android.
  2. Tap the sign-in input element on the page.
  3. Observe that the text selection menu covers the fullscreen notification.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website goes fullscreen, the browser shows a small message so you know the page has taken over the screen. This report found that on Firefox for Android, another menu (the one that appears when you select text) could cover that message. If the warning is hidden, a malicious page could pretend to be the browser or another app.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More by Irvan Kurniawan

View all

72 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.