Skip to content
UI spoofing Disclosed report Intermediate CVE-2024-7518

Fullscreen Spoof with Select Option showPicker()

A previous fix for a fullscreen spoofing bug in Firefox could be bypassed by calling the select element's showPicker() function, which opens a native picker while the page is in fullscreen. An attacker could use this to show a spoofed fullscreen page that the user cannot exit with Esc until the picker is dismissed.

Shaheen Fazim Follow

Originally disclosed on Mozilla

  • Fixed in 6 months
  • Paid in 6 months
  • Disclosed after 6 months
Text
Created attachment 9373586
poc.html

Recently, a bug 1832627 with a fix landing on Firefox nightly build 123.0a1 [20240117092715](https://hg.mozilla.org/mozilla-central/rev/b03b4a8f6dc5) , was closed. I managed to bypass this fix by using the JavaScript `showPicker()` function with the select option. 

In comparison to the previous method, this new approach requires only a single click from the user to spoof the screen fully. During the time of spoofing, the user cannot exit the picker or fullscreen with Esc, and can only escape after loading the spoofed page by removing the select option. If we could prolong this select option running indefinitely, trapping the user in fullscreen without escape using the above method would be possible as well.

Steps to Reproduce:
1. Download the poc.html file.
2. Open the poc.html file in firefox for testing.

Tested on latest Nightly build version: 123.0a1 20240118095536, OS: Windows 11

The original report as published on Mozilla's Bugzilla, by Shaheen Fazim. 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 exit handling did not account for a native select picker being open, so the picker suppressed the Esc key from exiting fullscreen.

Impact

An attacker could spoof a fullscreen page with a single user click and prevent the user from exiting with Esc, though the user can escape after the spoofed page loads by removing the select option.

What the attacker needed

Victim uses Firefox; victim clicks once; attacker controls a web page

How it was found

  1. Download the provided proof-of-concept HTML file.
  2. Open the file in Firefox to observe the spoofed fullscreen.

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 web page goes fullscreen, the browser normally lets you leave with the Esc key and shows a warning. This report shows a way to keep a fake page covering the whole screen by opening a built-in dropdown menu at the same time, so the Esc key does not work as expected. A user could be tricked into thinking they are on a real site.

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 Shaheen Fazim

View all

38 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.