Hunting for Bitwarden master passwords stored in memory
The Bitwarden desktop client and web extension left the plaintext master password in process memory even after the vault was locked. An attacker with access to the logged-in user's session could scan process memory and recover the unknown master password.
Published on redmaple.tech
It is possible to identify unknown Bitwarden master passwords in memory, even after a vault is locked. We developed a proof of concept tool, called BW-dump, that works on Windows platforms.
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 client did not wipe the plaintext master password from its renderer process memory when the vault was locked.
Impact
An attacker with access to the user's Windows session could recover the master password from a locked vault, though the web extension path was later patched and the tool only works on Windows.
What the attacker needed
Windows host; Access to the logged-in user session; Vault unlocked at least once; Bitwarden Desktop 2023.7.0 or below
The fix
A patch was released that fixes the vulnerability in Bitwarden Desktop 2023.7.0 and later.
How it was found
- Identify the Bitwarden renderer child process by its command line options.
- Dump or inspect the memory regions of that process.
- Search for the password prefix pattern in the relevant private read/write region.
- Filter matches to reduce false positives and read out the candidate password.
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 keeps your vault locked behind a master password. This research found that the app kept a readable copy of that master password in its working memory (RAM) even after you locked the vault. Anyone who could run a program as your Windows user could search that memory and pull the password out.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.