Firefox Focus security bug: "Use fingerprint to unlock app" bypass
The fingerprint unlock setting in Firefox Focus could be bypassed by quickly switching between the search widget and the app, allowing full access without authentication. An attacker with physical access could view browser history and switch tabs.
Originally disclosed on Mozilla
- Fixed in 7 months
- Paid in 7 months
- Disclosed after 7 months
In Firefox Focus there is a setting that says "Use fingerprint to unlock app". When enabled, the user must first authenticate. The app should be locked if the user does not authenticate.
The bug is that this authentication step can be circumvented allowing fully access to the app (including browser history by pressing the "page back" button, and including the ability to switch to other open tabs).
Steps to reproduce:
- Make sure that Firefox Focus has the "Use fingerprint to unlock app" setting turned on
- Use the app and then put it to the background (home button) or kill it completely (swipe up in task manager). When the app is started, user should authenticate first
- Long-press the desktop and add the search widget
- Quickly press the search widget, the home button and then the Firefox Focus icon
- If done quickly enough, Firefox Focus will open without having to authenticate
I tried to attach a movie showing the bug, but it was too big. I put it online here: https://jurr.org/20240506_Firefox_Focus_unlock_bug/ (Both files are the same movie - pick one.)
0:00 - 0:14: the "Use fingerprint to unlock app" is set
0:15 - 0:45: a little browsing (regular usage)
0:45 - 0:52: shows that the app should be unlocked after putting it to the background
0:52 - 1:01: Add search widget
1:01 - 1:04: Tried to reproduce, but misclicked - sorry!
1:04 - 1:16: Reproduce bug, open app without authentication. Also shows access to "page back", so full access
Note that it does not matter if the app is only put into the background or completely killed ("swiped up in the task manager").
Confirmed on:
- Firefox Focus 125.3.0 (latest) on Android 13 (security update 05-04-2024)
- Firefox Focus 125.3.0 (latest) on Android 9
- Firefox Focus 125.3.0 (latest) on Android 11 (emulator - this is how the movie was recorded)
I'd be very happy to assist in any way I can. Please let me know how.
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 race condition in the app's authentication check when launched from a widget, allowing the app to open before the lock screen is enforced.
Impact
An attacker with physical access to the unlocked device could bypass the fingerprint lock and access the app, including browser history and open tabs.
What the attacker needed
Physical access to unlocked device; fingerprint lock enabled; search widget added
How it was found
- Enable the 'Use fingerprint to unlock app' setting in Firefox Focus.
- Use the app, then put it in the background or kill it.
- Long-press the desktop and add the search widget.
- Quickly press the search widget, the home button, and then the Firefox Focus icon.
- The app opens without requiring authentication.
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.
Firefox Focus has a setting to require a fingerprint before opening the app. The bug lets someone skip that fingerprint check by quickly tapping the search widget, the home button, and then the app icon. This means anyone holding the unlocked phone could get into the browser without your fingerprint.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.