Skip to content
UI spoofing Disclosed report Intermediate CVE-2022-22741

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.

Irvan Kurniawan Follow

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:

  1. Visit attached launcher-fullscreen.bundle.html
  2. Click "Launch" button
  3. Tap anywhere on the popup page
  4. Browser goes into fullscreen with hidden fullscreen notification
  5. Press "esc" multiple times to try exit the fullscreen mode
  6. Browser still persist in fullscreen mode

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

  1. Open the attached launcher page.
  2. Click the Launch button.
  3. Click anywhere on the popup page.
  4. The browser enters fullscreen with the notification hidden.
  5. Press escape several times to try to exit.
  6. 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.

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.