Multiple requestFullScreen repeatedly then launch window with same window name able to overlap fullscreen notification toast
A web page could repeatedly request fullscreen while opening a popup window with the same window name, causing the popup to overlap the fullscreen notification toast. An attacker could thereby hide the browser's fullscreen warning from the user.
Originally disclosed on Mozilla
- Fixed in 41 days
- Paid in 47 days
- Disclosed after 41 days
Created attachment 9315560 testcase.html
After launch new popup window then repeatedly call multiple requestFullscreen using setInterval and launch popup window with same windowName interestingly it able to overlap fullscreen notification toast.
I have tested this works on Linux X11 and Wayland.
Tested on:
- Firefox Nightly 111.0a1 (2023-02-01) (64-bit) on Arch Linux KDE and Ubuntu 22.10
- Firefox 109.0.1 (64-bit) on Arch Linux KDE
Steps to reproduce
- Visit attached testcase.html
- Click "newWindow" button
- Click "Spoof" button on Main Window
- Re-click "Spoof" if child window not maximized or browser not goes into full-screen
- Browser goes into full-screen and overlapped by popup window
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 browser does not keep the fullscreen notification toast above popup windows that share the same window name and are opened during repeated fullscreen requests.
Impact
The fullscreen notification could be hidden from the user, weakening the cue that warns about a page taking over the screen; the report only demonstrates this on Firefox on Linux.
What the attacker needed
Victim visits a malicious page; user clicks to open the popup; Firefox on Linux
How it was found
- Open the attached test page.
- Click the button that opens a new window.
- Click the spoof button on the main window.
- Click it again if the child window is not maximised or the browser is not fullscreen.
- The browser enters fullscreen and the popup window overlaps the 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 site goes fullscreen, the browser shows a small warning so you know it happened. This report shows a page could open a popup window that covers that warning, so you might not realise the page took over your screen. That matters because the warning is a safety cue against fake fullscreen pages.
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.