Clickjacking to allow permission using window.moveTo in a popup
Categories
(Toolkit :: PopupNotifications and Notification Bars, defect, P1)
Tracking
()
People
(Reporter: sas.kunz, Assigned: emz)
References
Details
(4 keywords, Whiteboard: [reporter-external] [client-bounty-form] [verif?][adv-main122+][adv-esr115.7+])
Attachments
(6 files, 1 obsolete file)
i found a vulnerability where user can fall for clickjacking to allow permission
I tested on Firefox version 120.0b4 (64-bit)
steps to reproduce:
- open clickjacknew.html then click open button
- Click the "click 3 fastly" button fastly.
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Looks like another bug with the security delay. That belongs into PopupNotifications.
Comment 5•2 years ago
|
||
Hadn't really thought about the approach Paul suggested in comment 3, but yeah: restart the clock if the window is moved.
I thought these prompts went away when users clicked outside them -- that would mostly resolve this.
Don't allow window.moveTo() (or resize()) anymore (we have a pref for that).
If we can't get rid of those actions, disallow them if there's a permission prompt showing?
Updated•2 years ago
|
Comment 6•2 years ago
|
||
The severity field is not set for this bug.
:hjones, could you have a look please?
For more information, please visit BugBot documentation.
Comment 7•2 years ago
|
||
Hanna can't see all the other sec bugs; Paul should probably look at this in terms of prioritization once bug 1865914 is fixed.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 8•2 years ago
|
||
| Assignee | ||
Comment 9•2 years ago
|
||
Depends on D196309
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Please create a rebased patch for ESR115 and nominate it for approval when you get a chance.
| Assignee | ||
Comment 13•2 years ago
|
||
| Assignee | ||
Comment 14•2 years ago
|
||
Comment on attachment 9371050 [details]
Bug 1863083 - ESR, r=Gijs
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: See comment 12
- User impact if declined: Clickjacking vulnerability of permission prompts (geolocation, camera, etc).
- Fix Landed on Version: 122
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small code change that already had some bake time in Fx122.
Comment 15•2 years ago
|
||
Comment on attachment 9371050 [details]
Bug 1863083 - ESR, r=Gijs
Approved for 115.7esr.
Comment 16•2 years ago
|
||
| uplift | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 17•2 years ago
|
||
To attempt reproduction in Windows 10, I've downloaded the test pages locally, opened permissionshow_new.html in (affected builds) Release v121.0, Beta v121.0b6 and DevEdition v121.0b1, then clicked on the "Open" button, then 3 fast clicks on the "Click 3 fastly" button. Unfortunately, this exploit could not be reproduced because the window would move too low after the first click, causing to place of the other 2 clicks on the small window's Title Bar instead of the "allow" button from the Permission request dialog. This would cause the small window to maximize.
Unfortunately, the same behavior can be observed in Nightly v123.0a1 and Beta v122.0b6.
Are there any preconditions to this reproduction steps? What could I be missing?
Thank you!
Comment 18•2 years ago
|
||
I meant to leave NI for the assignee, not the reporter. I apologize.
| Assignee | ||
Comment 19•2 years ago
|
||
This one is tricky to reproduce since the PoC code relies on specific screen dimensions. I managed to reproduce it by adjusting the popup window coordinates until the buttons lined up. You can try that too by updating the coordinates (top, left, bottom, right) in the window.open call in clickjacknew.html. Let me know if that works for you.
Comment 20•2 years ago
|
||
I have modified the test page so that the issue reproduces on my screen size in Release v121.0 and ESR v115.6.0esr and then I used the same test page in Beta v122.0b6 and Nightly v123.0a1. It would appear that the permission buttons are not "activated" even though clicks fall on the "Allow" button, however, a button feedback can be observed. If the user wants to allow this permission, he will have to move the mouse before clicking the button again.
This fix behaves the same in ESR v115.7.0esr (treeherder build).
All considered, this issue is verified in Windows 10.
| Assignee | ||
Comment 21•2 years ago
|
||
Awesome, thank you!
Updated•2 years ago
|
Comment 22•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 24•2 years ago
|
||
Comment on attachment 9368457 [details]
Bug 1863083 - Test, r=Gijs
Revision D196310 was moved to bug 1879850. Setting attachment 9368457 [details] to obsolete.
| Assignee | ||
Updated•2 years ago
|
Comment 25•1 year ago
|
||
Making Firefox 122 security bugs public. [bugspam filter string: Pilgarlic-Towers]
Updated•1 year ago
|
Updated•1 year ago
|
Description
•