CWE-316: Cleartext Storage of Sensitive Information in Memory
Steps To Reproduce
Has this security problem at Bitwarden already been fixed? If not, when will it be fixed?
https://cwe.mitre.org/data/definitions/316.html
Expected Result
See link https://cwe.mitre.org/data/definitions/316.html
Actual Result
See link https://cwe.mitre.org/data/definitions/316.html
Screenshots or Videos
No response
Additional Context
No response
Operating System
Windows
Operating System Version
11
Installation method
Direct Download (from bitwarden.com)
Build Version
latest
Issue Tracking Info
- [X] I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
https://www.heise.de/news/Schwere-Luecke-bei-kritischen-Anwendungen-Klartextpasswoerter-im-Prozessspeicher-9830774.html
Hi there,
This has been escalated for further investigation. If you have more information that can help us, please add it below.
Thanks!
For context extracted the information regarding BitWarden from the source article:
(translated from german) " Susceptible to CWE-316: Yes Information read from the memory: MasterkeySecurity Hint (Hint in case you have forgotten your master password. Should only be sent to the user by e-mail). "
The article also points out that BitWarden has already been contacted directly.
@NovaSilentium They also Say that Bitwarden was informed about this problem CWE-316 Have you got informations about a new patch coming soon?
@NovaSilentium Some additional testing and analysis by a Reddit mod can be found here:
https://old.reddit.com/r/Bitwarden/comments/1erem10/bitwardens_potential_vulnerability_sensitive_data/lhygx25/
Have you got informations about a new patch coming soon?
@aeoneros This was apparently patched already in February, 2024 (source).
I'm wondering why the master password hint is/can be loaded at all because it should only be sent per mail by the server if you forget it and you can only change it in the web-app (as far as I know). So the real security question is why the application can load it at all.
I'm wondering why the master password hint is/can be loaded at all
The testing that I linked above was unable to reproduce that finding. Perhaps the Secuvera report was mistaken on that point.
"CWE-316: Cleartext Storage of Sensitive Information in Memory": https://cwe.mitre.org/data/definitions/316.html.
I have contacted Bitwarden Support.
The answer:
"Regarding the findings mentioned in this article about the "MasterkeySecurity Hint," we acknowledge the importance of addressing potential security vulnerabilities promptly and transparently. To address the issue directly, we have decided to remove the hint feature from our clients altogether to avoid any associated risks. Additionally, we are enhancing other security measures that come into play when the vault is locked.
In the meantime, we recommend that users concerned about their master password hint being compromised on a compromised device configure their vault timeout action to log out. This precaution helps mitigate risks associated with unauthorized access. For more details, please refer to our help documentation on vault timeout settings: https://bitwarden.com/help/vault-timeout/#vault-timeout-action"
@player637204 Interesting information, and to me, a bit surprising.
To address the issue directly, we have decided to remove the hint feature from our clients altogether to avoid any associated risks.
(emphasis added)
Looking at PR 10523, it seems like the only change being made is to the master password change form in the Web Vault (which is the only place where the existing hint is viewable within any client).
Thus, I would conclude that the "vulnerability" identified by Secuvera was only applicable to users who logged in to the Web Vault app, and navigated to Settings > Security > Master Password while logged in.
In the customer service response quoted above, it is thus a bit misleading to mention "our clients" in plural (as only a single client was affected, and only a single client is being changed).
Furthermore, unless there are additional related PRs or plans that I am not aware of, it is not accurate to say that Bitwarden is going to "remove the hint feature" — I don't see any evidence in the code that the links to request the hint will be removed from client app login screens. It looks like the main UI/UX change is that when changing the master password in the Web Vault, the master password hint will no longer be displayed on the form. However, as of now, it is unclear to me whether the hint will always be deleted (and/or replaced by a new hint that the user must enter) each time a master password change is made, or whether Bitwarden will implement a mechanism for changing the master password while retaining the old hint.