Skip to content
UI spoofing Disclosed report Advanced CVE-2022-36319

Redirect Mouse Input to Attacker Controlled Position while Visible Cursor Remain on Original Position

A crafted HTML page using overflow-block: hidden with a large transform: scale caused Firefox to redirect mouse input to a different screen position than the visible cursor. An attacker could make a victim click the Allow button on a location permission panel while the cursor appeared to be over an ordinary page element.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 8 months
  • Paid in 8 months
  • Disclosed after 8 months

Created attachment 9247667 launcher.zip

After using overflow-block: hidden combined with large transform: scale surprisingly the mouse input will be redirected to another position (including on Toolbar, Permission panel). I found the redirect click position can be controlled through scale number to click "Allow" on the permission panel while the visible cursor position still on the HTML page.

As the testcase using scale to redirect the mouse input, the mouse redirect position may different across OS (i.e. not hitting the permission panel), I have adjusted the scale number on the testcase to work (as on PoC video) on the following device (with Fission enabled):

Tested on:

  • Firefox 95.0a1 (2021-10-25) on Arch Linux (X11) (2560x1440)
  • Firefox 95.0a1 (2021-10-25) on Windows 10 (Laptop with 1920x1080 screen and VirtualBox VM with 2560x1440 guest screen)

Steps to reproduce:

  1. Extract attached launcher.zip
  2. Visit attached launcher-windows.bundle.html or launcher-kdex11.bundle.html
  3. Click "Launch" button
  4. Move cursor to "Download" image, the "Allow" button on permission panel will be highlighted
  5. While the "Allow" button highlighted
  6. Click the "Download" image
  7. Location permission is now allowed

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 a mismatch between the transformed layout geometry and the hit-testing used for mouse input when overflow-block: hidden is combined with a large scale transform.

Impact

A page could obtain location permission through a click the user did not intend, though the exact redirect position may vary across operating systems and the testcase scale had to be tuned per device.

What the attacker needed

Victim uses Firefox with Fission enabled; victim opens attacker page and clicks Launch; scale tuned to the victim's screen

How it was found

  1. Extract the attached launcher archive
  2. Open one of the attached bundle HTML files in Firefox
  3. Click the Launch button
  4. Move the cursor over the Download image so the Allow button on the permission panel becomes highlighted
  5. Click the Download image while Allow is highlighted
  6. The location permission is then granted

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.

A web page can be drawn at a different size than where the browser thinks it is. Here a page tricked Firefox into treating clicks as landing somewhere else on screen, so a click on a harmless-looking image actually pressed the Allow button on a permission popup. That let the page get location permission without the user meaning to grant it.

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.