Tapjacking to Install Extension in Custom Tabs
Categories
(Firefox for Android :: WebExtensions, defect)
Tracking
()
People
(Reporter: sas.kunz, Assigned: marcin)
References
Details
(4 keywords, Whiteboard: [client-bounty-form][fxdroid][group2][adv-main153+r])
Attachments
(6 files, 1 external file, 1 obsolete file)
When adding an extension via Custom Tabs, the extension install dialog does not appear immediately but will appear when the Firefox application is opened (the extension install dialog runs in the background). In addition, it can occur spoofing because the extension install dialog does not appear at addons.mozilla.org/en-US/android/addon/ (it will appear in the last opened tab or a new tab). In addition, it can cause tapjacking because the extension install dialog does not have a defense against tapjacking like the permission dialog (camera, microphone, or others). When Firefox is opened with the extension install dialog running in the background, it will cause tapjacking.
Steps to reproduce:
- Install the PoC application (find the source code here) (https://drive.google.com/file/d/1DpqO5k470fWyvUrIvdWDXyVZq8iXBSDe/view?usp=sharing)
- do two or more taps on the "tap count" button
3 do two or more taps on "count here" button
4 extensions https://addons.mozilla.org/en-US/android/addon/adguard-adblocker/ already installed
OS: Android 16
Device: Samsung S25 Edge
Updated•6 months ago
|
Updated•6 months ago
|
| Assignee | ||
Comment 6•6 months ago
|
||
Thank you for the report!
One thing that's broken here, security issue or not, is the UX when installing an extension from a custom tab. The install dialog should show immediately over the custom tab, you shouldn't have to go to the full app to see it and approve an installation. I think this might also help mitigate this security issue, at least this specific proof of concept. I filed a separate issue for it: bug 2041249.
On tapjacking itself, would love a recommendation from security, if we should add tapjacking protection to Fenix on either the "Add" button in the install dialog or the "Add to Firefox" button on AMO and if yes, what kind of protection (I don't have experience with tapjacking, so the only thing that comes to mind is a delay before this button is clickable, but not sure if that's a good idea and if yes, then what would be a good delay duration.)
Comment 7•6 months ago
|
||
On desktop we have clickjacking protection by temporarily disabling the action button (for one second) if the window was recently focused. I think that we should do the same here.
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 8•5 months ago
|
||
Updated•5 months ago
|
Comment 12•5 months ago
|
||
| Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
Comment 13•5 months ago
|
||
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
| Reporter | ||
Comment 14•5 months ago
|
||
hi, if this bug gets a cve can the credit be given to:
hafiizh (https://www.linkedin.com/in/hafiizh-7aa6bb31) & kang ali (https://www.linkedin.com/in/mohammad-ali-syarief)? thank you
Comment 15•4 months ago
|
||
Updated•4 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Description
•