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

requestFullscreen on iFrame from different origin able to not show fullscreen notification toast

A cross-origin iframe could trigger fullscreen and then, after navigating inside the iframe, the browser left fullscreen in an inconsistent state where the page still appeared fullscreen but with browser chrome visible. In that state, triggering fullscreen again entered fullscreen without the usual fullscreen notification toast.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 3 months
  • Disclosed after 2 months

Created attachment 9264782 iframegcloud.html

After trigger requestFullscreen on iFrame from different origin, then click the iFrame to navigate the iFrame url, interestingly after browser exit the fullscreen mode, the iFrame content escaped to parent page.

It seems the browser is improperly exit the fullscreen mode, the page still looks on fullscreen mode, but with visible address bar and toolbar. Interestingly when in that situation, after trigger requestFullscreen the browser goes into fullscreen without fullscreen notification toast.

Tested on:

  • Firefox 97.0.1 (64-bit) on Windows 11
  • Firefox Nightly 99.0a1 (2022-02-20) (64-bit) on Windows 11

Steps to reproduce:

  1. Visit attached iframegcloud.html
  2. Click anywhere inside the iFrame
  3. Click "AAA" href text
  4. Click Spoof page
  5. Browser goes fullscreen without fullscreen notification toast

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 browser's fullscreen state tracking got out of sync when a cross-origin iframe navigated while fullscreen, so the exit was incomplete and the notification was skipped on the next request.

Impact

A page could enter fullscreen without the notification toast, which may make spoofing the browser or another application easier for an attacker.

What the attacker needed

Victim visits a crafted page; victim clicks inside the iframe; cross-origin iframe content

How it was found

  1. Open the attached test page.
  2. Click anywhere inside the iframe.
  3. Click the link text inside the iframe.
  4. Click the spoof page control.
  5. Observe the browser entering fullscreen without the notification toast.

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 small notice so a user knows a page has taken over the screen. This report says a page using an iframe from another site could get the browser into a strange half-fullscreen state, and then go fullscreen again without that notice. That matters because the notice is a safety signal that helps people spot a page pretending to be their browser or another app.

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.