r/Bitwarden
•
u/Sweaty_Astronomer_47
•
Mar 03 '26
•
1
Discussion zero knowledge article - let's talk about the web vault
There has been a lot of discussion about this paper:
Imo the web vault for bitwarden and other pwm's is zero knowledge, based on the traditional definition. Specifically they do not have access to our passwords or the encryption keys to decrypt them, based on the software that exists now. BUT that is not how the above article approaches things. The zero-knowledge rules of the game in the above article are that the server must be considered as malicious.
Setting aside for the moment whether or not that is a reasonable criterion, it seems immediately obvious that the web vault does not pass the zero knowledge test under those rules of the game, and it never will. If the assumed-malicious server provides the assumed-malicious code that runs in your browser, and that code displays your passwords to you, then clearly that malicious code has access to your passwords. It applies to all password managers that have a web vault, including 1pass (their local private key makes no difference since again the assumed malicious code running in the browser obviously still has access to the passwords in order to display them).
The article didn't address this afaik, even though a similar web vault is a feature of most cloud password managers:
I do think that IF bitwarden server wanted to attack me, the web vault would be the easiEST place to do it and not get caught (please note that easiEST is not the same as easy!). Let's contrast the traditional client software to the web vault:
- The traditional client software is delivered infrequently to everyone uniformly through standard distribution channels. Once it is released/delivered, the evidence of malicious software would remain forever.
- the web vault software is served to my browser individually each and every time I visit the web vault. Setting aside bitwarden's internal controls, a malicious server could pick individual targets and serve them malicious software only once. If the targeted user does not examine the code in the browser or the web communication during that one attack, the evidence disappears.
So I guess I'm surprised that there is so much discussion about these other zero knowledge issues, and so little discussion about the web vault.
If someone is concerned about zero knowledge or web vault, what are some possible options?
- Some folks prefer Keepass/KeepassXC
- An argument could be made for steering clear of the web vault if your threat model includes malicious password manager server.
- Personally I store 2fa separately from passwords and pepper my critical passwords. It gives a measure of protection not just against malicious server attacks (which I personally consider unlikely) but against a variety of other ways my bitwarden vault might end up compromised.
With all that said, I'll mention that I personally think the zero knowledge concern is overblown. I don't think any of the large cloud password managers would ever want to mount such attack. From a business standpoint, access to your private data is a liability for them. And getting caught would mean losing customer trust, which would also kill their business.
And among all of the cloud based password managers, I think it would be the hardest for anyone in bitwarden to put malicious software onto their server without getting caught because their server software is open source. If they put something sneaky into their published server code, it might be noticed by external reviewers. If they try to substitute a different software version onto their production server, that's a version control deviation that should be easily identified by bitwarden's internal controls.
Thoughts?
3
u/Dangerous-Raccoon-60 Mar 03 '26
Ok this post is a bit of a rant, but I don’t get your point about the web vault not being zero-knowledge. Either you’re not clear on what they mean by zero-knowledge, you misinterpret how a compromised server gets your stuff, or I’m not getting your point.
In any case, the reported vulnerabilities boil down to this: if the underlying system is compromised, you’re compromised, whether that’s BW’s servers, or your OS.
Personally, I think it’s a lot easier to get a user to click on a link that installs malware on their machine than it is to subvert an entire organization’s server infrastructure.
Can it happen? Absolutely. There have been reports of software access channels coughNPMcough being subverted to distribute malware. But I think the overall risk is overblown. Now, if we’re talking governments… would be nice if Bitwarden had a canary statement.
2
u/Skipper3943 Mar 03 '26
For simplicity, I'd rather assume that your vault will be compromised and take steps to mitigate when that happens. I am technically inclined, but assuming the responsibility of understanding how my "zero-knowledge" vault can be compromised by a malicious server is probably beyond my scope. I am glad some experts looked at it, that Bitwarden is OSS and can apparently make this more transparent than closed-source software, and that Bitwarden is hardening the setup to reduce corner cases.
It is similar but not the same with the web vault (and released code, really). You can use the web vault less (which u/djasonpenney and a previous mod have often advocated) and delay update deployment, but those steps aren't a guarantee and can incur significant attention.
I think these kinds of technical unknowns are the reason why some people stick to an offline password manager or even an encrypted spreadsheet. Even an offline manager isn't immune to a supply-chain attack, whereas an encrypted spreadsheet doesn't offer the advantages a password manager might but would suffer less from these kinds of problems.
7
u/djasonpenney Volunteer Moderator Mar 03 '26
The web vault uses its own system of digital signatures to distribute the JavaScript source code. In order to compromise the web vault, the attacker would have to compromise that system as well.
I do agree that the web vault is the most questionable of the Bitwarden web clients. Running inside a full browser, it has a larger attack surface than a dedicated client.
I also agree that the zero knowledge value proposition is adequately addressed, especially by Bitwarden. If someone has completely co-opted the code on your Bitwarden server, you have much greater problem outside of the scope of your password manager.
Oh, and just like the JavaScript components used to serve the web vault, there is a digital signature system for the Bitwarden source code as well as the generated artifacts we download. Yes, it would be possible to compromise these…but I would argue there are much easier ways for an attacker to compromise your vault.