Skip to content
Crypto Write-up Advanced

Bitwarden Heist - How To Break Into Password Vaults Without Using Passwords

Bitwarden's Windows Hello unlock stored the vault's derived key in Windows DPAPI, which any process in the user's session could enumerate without a biometric prompt, and which domain administrators could decrypt using domain backup keys. An attacker with domain admin rights, or any code running as the user, could therefore recover the key and decrypt all vault credentials without the master password.

RedTeam Pentesting Follow

Published on blog.redteam-pentesting.de

Sometimes, making particular security design decisions can have unexpected consequences. For security-critical software, such as password managers, this can easily lead to catastrophic failure: In this blog post, we show how Bitwarden’s Windows Hello implementation allowed us to remotely steal all credentials from the…

RedTeam Pentesting GmbH, on blog.redteam-pentesting.de

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the derived key was stored via the Windows Credentials API/DPAPI, which does not enforce a biometric prompt and is decryptable by any process in the user session and by domain backup keys, so the key was recoverable without the master password.

Impact

An attacker with domain admin rights, or any process running as the user, could decrypt the entire vault and steal all stored credentials without the master password or biometric authentication; the text notes the issue was fixed in v2023.4.0.

What the attacker needed

Domain admin access; Bitwarden desktop with Windows Hello enabled; domain-joined Windows workstation

The fix

The underlying issue was fixed in Bitwarden v2023.4.0 in April 2023.

How it was found

  1. Obtain remote administrator access to the domain and a workstation running Bitwarden.
  2. Download the Bitwarden data file and the DPAPI Credentials and Protect directories over SMB.
  3. Export the DPAPI backup key from the domain controller.
  4. Decrypt the DPAPI master key with the backup key, then decrypt the stored Bitwarden credential to reveal the derived key.
  5. Use the derived key to decrypt the account encryption key and then the vault credentials.

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 write-up has not been written yet. The Original tab links to the source.

A password manager normally keeps your vault locked behind your master password. Bitwarden also lets you unlock with Windows Hello (fingerprint or PIN), and to make that work it saves a spare key on the computer. The report shows that this spare key was stored in a way that other programs running as the same user, or an administrator of the company network, could read it and open the vault without ever knowing the password.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by RedTeam Pentesting

View all

5 more disclosed reports, best first.

More from Bitwarden

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.