Skip to content
UI spoofing Disclosed report Intermediate CVE-2024-2611

Clickjacking to allow permission (bypass of 1863083)

A clickjacking vulnerability allowed an attacker to trick a user into granting permissions by using pointer lock to hide the cursor and then clicking the permission prompt. The bypass worked on Firefox 120.0b4 and 123.0b2.

Hafiizh Follow

Originally disclosed on Mozilla

  • Fixed in 34 days
  • Paid in 40 days
  • Disclosed after 34 days
Text
Created attachment 9376574
bypassclickjacking.html

I found a clickjacking vulnerability , bypass on https://bugzilla.mozilla.org/show_bug.cgi?id=1863083. in 1863083 it has been fixed, namely that when the cursor and permissions are in the same coordinates, the cursor cannot be clicked until the cursor is moved. I bypassed it by using pointerlock before the permission prompt appeared for a moment then did pointerlock (cursor disappeared) then it appeared again then clickjacking occurred.

I tested on Firefox version 120.0b4 (64-bit)

steps to reproduce:
1. open bypassclickjacking.html
2. do many clicks on "click here" button with more 200ms delay

Operating System : Windows 10
Firefox version : Firefox developer version 123.0b2 (64-bit)

The original report as published on Mozilla's Bugzilla, by Hafiizh. 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 permission prompt's click protection relied on cursor movement, which pointer lock could reset, allowing clicks without movement.

Impact

An attacker could trick a user into granting permissions without the user's informed consent, potentially leading to further abuse.

What the attacker needed

Victim uses Firefox; victim visits malicious page; victim clicks repeatedly

How it was found

  1. Open the provided HTML file (bypassclickjacking.html).
  2. Click the 'click here' button repeatedly with more than 200ms delay between clicks.

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.

Clickjacking is when a malicious page tricks you into clicking something you didn't intend to, like a permission button. Here, the attacker used a feature that hides the mouse cursor (pointer lock) to make the user click the permission prompt without realising. This could let a website get permissions it shouldn't have.

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 Hafiizh

View all

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