Security Concern: Bitwarden Authenticator Automatically Restores and Displays All Authentication Codes

Hello,

I installed Bitwarden Authenticator on my phone a few months ago but eventually uninstalled it because I didn’t find it suitable for my needs.

Today, I decided to give it another try. I reinstalled the app from the Google Play Store and, after opening it and going through a few initial setup screens, I was surprised to see that all my authentication codes were already there!

The app even displayed the message: “Account synced from your Bitwarden app.”

What concerns me is that I was never asked to enter my master password, provide my fingerprint, or perform any other form of authentication before gaining access to all my TOTP codes.

To investigate further, I tried the following:

  • Cleared the app’s cache and data, then reopened it. After going through the initial screens, all my authentication codes were available again.
  • Completely uninstalled the app and reinstalled it from the Google Play Store. Once again, all my authentication codes appeared without any additional authentication.

Am I missing something here? How is the app able to restore and display all my authentication codes without requiring any authentication or verification of my identity?

To me, this raises a serious security concern.

I also came across the following statement in Bitwarden’s documentation:

“Your authentication keys (sometimes referred to as ‘secret keys’ or ‘TOTP seeds’) and all associated metadata are stored in a local unencrypted database on your device. This data is not synced to Bitwarden servers. A backup of your data is made by your device’s cloud backup system, for example by iCloud Backup or Google One. To protect the data in your app, you can also set up biometric login.”

This raises another concern. If the authentication secrets are stored in an unencrypted local database, what safeguards are in place to protect them?

In particular, I would appreciate clarification on the following:

  1. Why are all my authentication codes automatically restored and accessible after reinstalling the app, without requiring any authentication?
  2. Is this behavior intentional, and if so, what security mechanism ensures that only the legitimate device owner can access these codes?
  3. Why are TOTP secrets stored in an unencrypted local database? Are they protected by Android’s encryption mechanisms or any other security controls?
  4. Does enabling biometric authentication actually encrypt or otherwise protect the underlying database, or does it simply prevent access through the app’s interface?

From a security perspective, authentication codes are particularly sensitive information. Automatically restoring and displaying them without any apparent authentication seems like a potentially serious security weakness.

This sounds very much like you enabled the sync function of the authenticator app (and then the authenticator app syncs with your Bitwarden vault via the BW mobile password manager app).

Could you please check in your BW Android app if “Allow authenticator syncing” is enabled (Settings > Account security)?

Before you ask: that function is disabled by default.

Hi @Nail1684 , thank you for your reply.. the answer is yes, it is enabled but even then, why would the Authenticator App just “show” all the codes with no other security? the way I see it, it is same as the Bitwarden Password app shows all the codes after install w/o any security!?

Thank you

You can enable biometric unlock in the authenticator app.

I’m not sure I understand that correctly, but: if you had the sync option in your password manager app disabled, you probably wouldn’t see any code in your authenticator app right now.

And to enable the sync in the password manager app only works when you can authenticate to your Bitwarden vault there.

BTW, IIRC only the local codes are unencrypted in the authenticator app – see also this feature request: Option to encrypt the locally stored data of the Authenticator app on the device

I believe synced codes should be encrypted: Sync Verification Codes | Bitwarden

Thanks for the clarification. I understand that biometric unlock is available, and I also understand that the codes are synchronized from the Bitwarden Password Manager rather than necessarily being restored from the Authenticator’s own local storage.

However, my concern remains.

The fact that I have authenticated myself in the Password Manager at some point doesn’t necessarily mean that the Authenticator should automatically expose all my TOTP codes without any additional authentication.

For example, imagine someone gets hold of my unlocked phone. They can simply open Bitwarden Authenticator and immediately have access to all my TOTP codes (if I have not setup the biometric unlock), without needing my fingerprint, PIN, or master password.

Even more concerning, they don’t even need the app to be installed beforehand! They could simply download Bitwarden Authenticator from the Google Play Store, install it, open it, go through the initial setup screens, and potentially have all my synchronized TOTP codes displayed without any additional authentication.

In other words, uninstalling the Authenticator app doesn’t really prevent access to those codes if someone has temporary access to my unlocked phone.

I understand that the synchronization mechanism uses encryption, and that is good. But encryption during synchronization and protection against unauthorized access to the codes on the device are two different things.

I also agree that synced codes and locally stored codes have different storage mechanisms. However, Bitwarden’s own documentation explicitly states that locally stored codes are kept in an unencrypted database.

My point isn’t that the synchronization mechanism is necessarily insecure. My point is that the default security model deserves more consideration, particularly when dealing with something as sensitive as TOTP secrets.

Yes, I can enable biometric unlock, but why isn’t this enabled by default? These codes are security credentials, after all.

I would personally prefer an authenticator app that requires authentication by default, rather than relying on users to discover and manually enable an additional security setting.

Thank you

Feel free to open a feature request specifically requesting that.

Thanks, I might actually do that.

However, I think this is more than just a feature request or a matter of personal preference.

We’re talking about TOTP secrets, which are security credentials that provide a second factor of authentication for other accounts.

In my opinion, requiring users to manually discover and enable biometric protection for such sensitive information shouldn’t be the default approach. Security should be enabled by default, with users having the option to relax it if they choose.

Imagine a banking app or password manager displaying sensitive information immediately after installation without requiring any authentication. I think most people would question that design.

I believe an authenticator app should follow the same security principles.

I’ll consider opening a feature request, but I also hope Bitwarden will consider whether the current default behavior is appropriate from a security perspective.

Thank you