Skip to content
Access control Disclosed report Intermediate

Bypass for forced re-authentication upon biometrics change

The app's biometric integrity check, which should force master password re-authentication after a fingerprint change, can be bypassed by adding a second account and switching vaults. An attacker with physical access and a valid Bitwarden account could then unlock the primary vault using biometrics, viewing and deleting stored passwords.

rink_ Follow

Originally disclosed on HackerOne

Medium 6.6 View original
  • Disclosed after 4 months

Verified in Android, might also apply for iOS This description requires 2 accounts, here called the primary and the secondary vault.

  1. Sign in to the Bitwarden app with the primary account and enable biometric unlock
  2. Make sure the app is locked (e.g. by force killing the app)
  3. Enroll a new fingerprint
  4. As per GH-1026, BiometricIntegrityValid will now be false and hence the app will display "Biometric unlock disabled pending verification of master password"
  5. Add the secondary account following the regular procedure (and enable biometric unlock)
  6. Attempt to switch to the primary vault; note that it still does not allow biometric unlock
  7. Force kill the app making sure both vaults are locked
  8. Switch back to the secondary vault and unlock it
  9. From the secondary vault, switch to the primary vault and note how it is possible to unlock it using biometrics

Impact

Changing biometric options, for example enrolling extra fingerprints should prompt for re-authentication according to the integrity checks implemented in GH-1026 and GH-1093.

This vulnerability allows bypassing those integrity checks if the following three conditions are met:

  1. The attacker has physical access to the phone and is able to unlock the phone
  2. The user has enabled biometrics unlock
  3. The attacker has any valid Bitwarden account (including selfhosted)

Upon gaining access to the vault, export is not possible because the master password is required, but it is possible to view and delete all passwords the user has access to. It is also possible to enable device login if that was not enabled yet and gain access to the vault on a desktop computer.

The original report as published on HackerOne, by rink_. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 biometric integrity state is tracked per account but not properly re-evaluated when switching between accounts, allowing a secondary account's valid state to unlock the primary vault.

Impact

An attacker with physical access and a valid Bitwarden account could view and delete all passwords in the victim's vault, and could enable device login to access the vault from a desktop; export is not possible because the master password is required.

What the attacker needed

Physical access to unlocked phone; victim has biometric unlock enabled; attacker has a valid Bitwarden account

How it was found

  1. Sign in with the primary account and enable biometric unlock.
  2. Lock the app (e.g. force kill).
  3. Enroll a new fingerprint; the app shows biometric unlock disabled pending master password verification.
  4. Add a secondary account and enable biometric unlock for it.
  5. Force kill the app so both vaults are locked.
  6. Unlock the secondary vault, then switch to the primary vault and unlock it using biometrics.

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.

Bitwarden is a password manager. It can use your fingerprint to unlock your vault instead of typing your master password. When you add a new fingerprint, the app is supposed to notice and ask for your master password again. This report shows a way to skip that check by adding a second account and switching between them, so someone who can unlock your phone could get into your vault.

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.

More from Bitwarden

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.