Closed Bug 1887805 Opened 2 years ago Closed 1 year ago

Clickjacking to allow permission using datepicker and pointerlock

Categories

(Toolkit :: PopupNotifications and Notification Bars, defect)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox127 --- wontfix
firefox128 --- fixed

People

(Reporter: sas.kunz, Assigned: hsohaney)

References

Details

(4 keywords, Whiteboard: [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329][adv-main128-])

Attachments

(4 files)

when activating pointerlock the cursor by default is in the middle of the screen and visible but using datepicker the pointer is visible and can interact so this can cause clickjacking

steps to reproduce:

  1. open vidk.html
    2 click on "Choose Date" button
  2. do many Click on "next month" button

Operating System : Windows 10
Firefox version : Firefox Nightly version 126.0a1 (2024-03-25) (64-bit)

Flags: sec-bounty?
Attached file vidk.html

Paul, can you take a look?

Component: Security → PopupNotifications and Notification Bars
Flags: needinfo?(pbz)
Product: Firefox → Toolkit

Harshit, can I forward this one to you?

Flags: needinfo?(pbz) → needinfo?(hsohaney)

This looks reproducible on mac, but it's a bit buggy (it doesn't actually click allow on my machine). I will try it on a windows vm and confirm. Happy to take this!

Assignee: nobody → hsohaney
Flags: needinfo?(hsohaney)

The fact that it doesn't accept the click for up to 2 seconds is intended behavior and means the clickjacking protection is working. See https://searchfox.org/mozilla-central/rev/7bbc54b70e348a11f9cd12071ada2cb47c8a14e3/toolkit/modules/PopupNotifications.sys.mjs#1345-1346,1349,1351 for the code doing that.
What's unexpected / unwanted is the fact that when interacting with the date picker the cursor jumps to the allow button and it immediately accepts the prompt.
Clicks not going through for a bit after the prompt shows would be an acceptable solution. I'm curious why the code we added for pointerlock doesn't get triggered here.

Summary: Clickjacking to allow permission using datepicker → Clickjacking to allow permission using datepicker and pointerlock

Hello any updates?

After bug 1743329, pointer lock is not allowed when xul popup is opened, so I think it also fixes this.

It would be worth checking whether this still works now that Bug 1743329 has been fixed.

I tried reproducing on my vm, but could not reproduce anymore. Reporter, could you validate if this is still reproducible?

Flags: needinfo?(sas.kunz)

I can still reproduce it on Firefox version 127.0 (64-bit) but on Firefox developer edition version 128.0b3 (64-bit) I can't reproduce it. Is it fixed in version 128?

Flags: needinfo?(sas.kunz)
Attached video firefox127_0.mp4

firefox 127.0

firefox 128.0b3 (64-bit) developer edition

in version >=128 when the choose date button is selected the pointerlock is not active (exit pointer lock) but in version 127 the pointerlock is still active

As per comment 8 Bug 1743329 most likely fixed this. That patch targets 128 (and later). Thanks for confirming!

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
See Also: → CVE-2024-6608
Whiteboard: [reporter-external] [client-bounty-form] [verif?] → [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329]
Target Milestone: --- → 128 Branch

Thanks for reporting this to us. Looks like someone else was faster here.

Flags: sec-bounty? → sec-bounty-
Group: firefox-core-security → core-security-release
Depends on: CVE-2024-6608
See Also: CVE-2024-6608
QA Whiteboard: [post-critsmash-triage]
Whiteboard: [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329] → [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329][adv-main128+]
Whiteboard: [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329][adv-main128+] → [reporter-external] [client-bounty-form] [verif?] [Fixed by Bug 1743329][adv-main128-]

Hello Have i get cve for this vulnerabilty?

No because this was part of another, previously reported bug.

Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: