Enabling 2fa on bitwarden.com overwrites vaultwarden 2fa key #1655

Closed
opened 2026-02-05 01:26:02 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @freekvh on GitHub (Aug 2, 2023).

Subject of the issue

Enabling 2fa on bitwarden.com overwrites vaultwarden 2fa key in MS authenticator

Deployment environment

  • vaultwarden version:
  • Install method:

  • Clients used:

  • Reverse proxy and version:

  • MySQL/MariaDB or PostgreSQL version:

  • Other relevant details:

Steps to reproduce

I went to bitwarden.com where I have the same account as in vaultwarden, I enabled 2fa and used MS authenticator to import the key via QR code. There was a warning that it would overwrite or update a key? I didn't think much of it because I may have experimented with bitwarden in the past. But afterwards I found that my vaultwarden key was gone.

Expected behaviour

Making a new TOTP for bitwarden.com leaves my vaultwarden TOTP untouched

Actual behaviour

Bitwarden.com key overwrites vaultwarden TOTP key.

Troubleshooting data

I thought 2fa was at least domain dependent, but apparently some things are exactly the same between vaultwarden and bitwarden.com. Maybe this is obvious to some, but it isn't to me.

Originally created by @freekvh on GitHub (Aug 2, 2023). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue Enabling 2fa on bitwarden.com overwrites vaultwarden 2fa key in MS authenticator ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> * Reverse proxy and version: <!-- if applicable --> * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> * Other relevant details: ### Steps to reproduce I went to bitwarden.com where I have the same account as in vaultwarden, I enabled 2fa and used MS authenticator to import the key via QR code. There was a warning that it would overwrite or update a key? I didn't think much of it because I may have experimented with bitwarden in the past. But afterwards I found that my vaultwarden key was gone. ### Expected behaviour Making a new TOTP for bitwarden.com leaves my vaultwarden TOTP untouched ### Actual behaviour Bitwarden.com key overwrites vaultwarden TOTP key. ### Troubleshooting data I thought 2fa was at least domain dependent, but apparently some things are exactly the same between vaultwarden and bitwarden.com. Maybe this is obvious to some, but it isn't to me.
Author
Owner

@BlackDex commented on GitHub (Aug 2, 2023):

I'm not sure which version you used to create the key, but if that was before we modified the web-vault to display Vaultwarden instead of Bitwarden, then you are probably right, because that still had the Bitwarden key in there.

So, if you would use the latest version with the modified web-vault it should be fine.

Therefor going to close this is already fixed.

@BlackDex commented on GitHub (Aug 2, 2023): I'm not sure which version you used to create the key, but if that was before we modified the web-vault to display Vaultwarden instead of Bitwarden, then you are probably right, because that still had the Bitwarden key in there. So, if you would use the latest version with the modified web-vault it should be fine. Therefor going to close this is already fixed.
Author
Owner

@freekvh commented on GitHub (Aug 2, 2023):

Ah ok, yeah the key was created a long time a ago, using the new version it should be fine then, I will try to reset 2fa on vaultwarden now then... I good challenge but I bet doable from the cli. Thanx.

@freekvh commented on GitHub (Aug 2, 2023): Ah ok, yeah the key was created a long time a ago, using the new version it should be fine then, I will try to reset 2fa on vaultwarden now then... I good challenge but I bet doable from the cli. Thanx.
Author
Owner

@BlackDex commented on GitHub (Aug 2, 2023):

Ah ok, yeah the key was created a long time a ago, using the new version it should be fine then, I will try to reset 2fa on vaultwarden now then... I good challenge but I bet doable from the cli. Thanx.

Via the admin interface you can remove 2fa from your account.

@BlackDex commented on GitHub (Aug 2, 2023): > Ah ok, yeah the key was created a long time a ago, using the new version it should be fine then, I will try to reset 2fa on vaultwarden now then... I good challenge but I bet doable from the cli. Thanx. Via the admin interface you can remove 2fa from your account.
Author
Owner

@freekvh commented on GitHub (Aug 2, 2023):

Yes this worked. Thank you.

@freekvh commented on GitHub (Aug 2, 2023): Yes this worked. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1655