requestFullscreen while page loading then trigger window.history.back() able to turn into full screen without fullscreen notification toast
A race condition during page loading allows a malicious page to enter fullscreen mode without the usual notification toast. An attacker could use this to spoof the browser UI and trick the user into thinking they are on a legitimate site.
Originally disclosed on Mozilla
- Fixed in 47 days
- Paid in 53 days
- Disclosed after 47 days
Created attachment 9319750 testcase.html
I found that by adding code to request permission dialog, tab loading + slowdown code, and window.history.back() when in the middle of requestFullscreen it able to turning the browser into full screen mode without fullscreen notification toast.
On mozregression I able to reproduce this after commit Bug 1800482 - Track fullscreen-request-origin in top-level chrome browsing context. After the commit on this testcase it throw error on browser console TypeError: can't access property "ownerGlobal", topBC.embedderElement is null.
Tested on:
- Firefox Nightly 112.0a1 (2023-02-24) (64-bit) on Windows 11
Steps to reproduce:
- Open Firefox Nightly on Windows 11
- Download attached testcase.html
- Serve the file with
python -m http.server - Visit 127.0.0.1:8000
- On directory listing click "testcase.html" link
- Click anywhere on the page
- Browser goes to fullscreen without fullscreen notification toast
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 a race condition in Firefox's fullscreen request handling where the browser context changes during navigation, causing the notification to be bypassed.
Impact
An attacker could make the browser enter fullscreen without the notification toast, potentially enabling UI spoofing, though this was only demonstrated on Firefox Nightly.
What the attacker needed
Victim clicks a link; victim clicks on the page; Firefox Nightly on Windows 11
How it was found
- Open Firefox Nightly on Windows 11
- Download the attached testcase file
- Serve the file with a simple HTTP server
- Visit the local address in the browser
- Click the testcase link on the directory listing
- Click anywhere on the page
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 asks to go fullscreen, the browser normally shows a small message so you know it happened. This report found a way to skip that message by quickly navigating back while the page is still loading, so the browser goes fullscreen silently. That could let a bad site pretend to be another site and trick you.
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.