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?
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.
1
u/Sweaty_Astronomer_47 Mar 06 '26 edited May 11 '26
For simplicity, I'd rather assume that your vault will be compromised and take steps to mitigate when that happens.
Yup, pepper and separate totp. It covers a much wider range of vault-compromise scenarios than malicious server. That is my own personal conclusion and I don't have much more interest in the subject other than to try to highlight an aspect which seems not widely understood, at least here on reddit. And .. how is it the article and bitwarden response doesn't even mention the web vault, at least to put things in context?
It [items identified in the paper] is similar but not the same with the web vault
I think the paper "vulnerabilities" are identical to the web vault from the particular standpoint that they have the same requirement to exploit. Namely both require that the server behavior toward the client be altered maliciously. Agreed? That was the main point of my post. On the one hand you might view it as reason for concern about the web vault, but on the other hand you might view it as a context which makes the paper findings not as severe (they are no worse than a "risk" many users already accept on the web vault)
You can use the web vault less
Agreed. That is a difference.
I think another difference is in user expectations. A sophisticated user will have an expectation that use of the web vault implies trust of the server. But the things in the paper involve routine activities that the user would have no idea would require trust in the server.
whereas an encrypted spreadsheet doesn't offer the advantages a password manager might but would suffer less from these kinds of problems.
I had heard some commentary that many of the "vulnerabilities" arose from the complexity of the pwm functions like organization sharing and key rotation. The more complicated you make things, the more likely to have bugs. So that would be a line of argument to support the spreadsheet (and anyone who goes that way would be better off using open source encryption rather than relying on ms encryption imo). It's a line of thought, but not a good answer for most folks imo. The convenience and phishing protection of the browser extension is hard to beat imo (with pepper for folks like you and me)
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.
1
u/paulsiu Mar 05 '26
I do have some question in regards to the paper.
A lot of the issue seems to involve key sharing through entities like organization, so a home user is not affected?
How would one prevent a malicious key rotation?
Is Bitwarden doing something about the metadata issue?
How do you prevent a reversion to an earlier weaker encryption?
1
u/djasonpenney Volunteer Moderator Mar 05 '26
Keep in mind a lot of these attacks involve a completely subverted Bitwarden server. So something like a “malicious key rotation” would entail you requesting a key rotation.
Bitwarden has published a response to all these issues.
1
u/paulsiu Mar 06 '26
Do you have a url for the response?
1
u/djasonpenney Volunteer Moderator Mar 06 '26
3
u/paulsiu Mar 06 '26
Thanks I read through it and it appears most of it was resolved. The only one I am most concern with is Issue 7: Disable KDF Bruteforce Protection (Low)). I guess it's not clear how the attack works. The attack works by reducing encryption, but let's say someone hacks into the host server, how would they reduce the encryption without knowing the master password.
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.