Browser window is locked in fullscreen mode using window.resizeBy() or resizeTo()
A popup window that enters fullscreen and is then moved with window.moveBy or window.moveTo causes the browser to enter fullscreen with the fullscreen notification hidden, and the fullscreen mode cannot be exited by pressing escape. An attacker could trap a victim in a locked fullscreen state that hides the usual notification.
Originally disclosed on Mozilla
- Fixed in 28 days
- Paid in 35 days
- Disclosed after 28 days
Created attachment 9250107 launcher-fullscreen.bundle.html
After invoke requestFullScreen in the popup window then move the popup window using moveBy or moveTo the browser goes into full screen with hidden fullscreen notification and moreover fullscreen mode won't exit even repeatedly press "esc" multiple times.
Tested on:
- Firefox Nightly 96.0a1 (2021-11-09) on Windows 11
- Firefox Release 94.0.1 on Windows 10 and Windows 11
Steps to reproduce:
- Visit attached launcher-fullscreen.bundle.html
- Click "Launch" button
- Tap anywhere on the popup page
- Browser goes into fullscreen with hidden fullscreen notification
- Press "esc" multiple times to try exit the fullscreen mode
- Browser still persist in fullscreen mode
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 state and its notification are not correctly re-evaluated when a fullscreen popup window is moved with moveBy or moveTo.
Impact
A user could be locked in fullscreen mode with the fullscreen notification hidden, and escape does not exit it; the report shows this on Firefox Nightly and Firefox Release on Windows.
What the attacker needed
Victim opens the attacker page; victim clicks Launch and the popup
How it was found
- Open the attached launcher page.
- Click the Launch button.
- Click anywhere on the popup page.
- The browser enters fullscreen with the notification hidden.
- Press escape several times to try to exit.
- The browser stays in fullscreen mode.
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.
Fullscreen mode normally shows a notice and lets you leave by pressing escape. Here, a popup window that was moved while in fullscreen ended up stuck in fullscreen with the notice hidden, so the user could not get out. This matters because a page could keep someone trapped in a fake-looking fullscreen view.
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.