Skip to content
UI spoofing Disclosed report Intermediate CVE-2021-43538

Force Collision Between requestFullscreen() and requestPointerLock() Notification will Hide Both Notification

When a page requests fullscreen and then pointer lock in quick succession, the browser's notifications for both can collide and be hidden, so the user never sees that fullscreen or pointer lock is active. An attacker could use this to enter fullscreen without the usual visible warning.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 20 days
  • Paid in 20 days
  • Disclosed after 20 days

Created attachment 9249016 testcase.html

After requesting fullscreen then request pointer lock and append fullscreenElement to pointerLock element multiple times, interestingly when the notification collide, the both notification will immediately hidden and will not show on the screen.

Steps to reproduce

  1. Visit attached testcase.html
  2. Click anywhere on the page
  3. Browser goes into fullscreen without any fullscreen notification

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 code that shows and hides the fullscreen and pointer-lock notifications does not handle both being requested at once, so each notification hides the other.

Impact

A page could enter fullscreen and capture the pointer without the user seeing the usual notification, which may make spoofing or tricking the user easier.

What the attacker needed

Victim visits a malicious page; victim clicks on the page

How it was found

  1. Open the attached test page.
  2. Click anywhere on the page.
  3. The browser enters fullscreen but no fullscreen notification is shown.

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.

Browsers show a small notice when a website takes over your whole screen (fullscreen) or captures your mouse pointer (pointer lock), so you know it happened. This report shows that if a page asks for both at nearly the same time, those notices can cancel each other out and disappear. That means a site could go fullscreen without you being told.

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.