You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am disappointed because when exporting the database no password is required.
And when I want to change the master password no password is required.
For me it is a bad lack of security because if an attacker who has managed to have access to the PC locally or remotely he can change the password or export the entire database in clear text in a second without any kind of protection. It's rare but it can happen and if it happens game over!
All password managers require the master password to export and change the master password.
I don't understand why KeePass XC doesn't!
That's why I don't use KeePass XC because it's too insecure for it.
I hope you will include this important protection becouse if this problem is not solved it remains a totally useless application to contain passwords.
Reacted by Moritz Poldrack, Andreas Profous, obitbef and cregx
Reacted by nycex, niklasbuesing, Oskar, Lennart Glauer, Sven Seeberg, danielb, jkhsjdhjs, networkException, Temm, dr-br and 25 more
If an attacker has access to your unencrypted database, you have lost anyway. How is that even supposed to work? A website can ask you to confirm a password change by forcing you to enter your current password first but that only works because the user cannot control the backend directly. That's not the case here. The UI is running on the same computer that has been compromised.
There is some fundamental misunderstanding of how local programs work at display here.
Reacted by Sven Seeberg, textaligncenter, Felix Ulonska, Izuna, Brayan Gomes, Simon Marquardt, LeoniePhiline, Slawa, chridle, Azusagawachan and 2 more
To anyone reading this: THIS IS NOT A VULNERABILITY.
A local attacker can always do anything to your database. That is by design and simply how things work. KeePassXC is not an online service, so any additional password prompt could be circumvented. Also, there is no reason for an attacker to change your password. If they have access to your unlocked database, they have access to the data in it, no matter what the password is. They also cannot lock you out, unless you fail to do backups.
Reacted by Strubbl, Daniel Ruf, Sven Seeberg, danielb, Felix Ulonska, dr-br, Julian, Rasmus Kentala, Paul Schaub, Bartosz Wojciechowski and 19 more
I requested a rejection of the CVE with the following reason:
This issue is not a vulnerability. KeePassXC is an offline password manager and hence BY DESIGN, there is no such thing as an "authenticated user". Asking the user for their password prior to making any changes to the database settings adds no additional protection against a local attacker. An attacker can ALWAYS make changes to the database or copy its contents if they get access to it in its unlocked form. A password prompt will not change that. There is also no (and cannot be any) "second factor" for "authentication." Again, this is by design of an offline password manager and not a security problem. This is different from online web services.
A password prompt does not even prevent an attacker from locking a user out of their database. If that were the attacker's goal, they would not need access to the unlocked database. Corrupting the locked KDBX file is enough to achieve this goal. The correct strategy to protect against this is keeping backups of the database. A password prompt will not help.
The premise of the CVE comes from a fundamental misunderstanding of KeePassXC's security model.
Reacted by Sven Seeberg, danielb, aceArt-GmbH, textaligncenter, codethief, networkException, Temm, dr-br, Rasmus Kentala, Bartosz Wojciechowski and 21 more
I totally agree that this is not a vulnerability. KeePassXC already does include a much more suitable mitigation for the stated scenario: there is a setting to lock the database when inactive. The time can be set to a very short interval, if necessary.
Reacted by aceArt-GmbH, Felix Fontein, Salim B, LeoniePhiline, Slawa, cschweers and Igor Scheller
Enpass is an offline password manager, and it requires password for data export!
If someone while working on the pc has a trojan on the PC without realizing it, it is easy to export the data unencrypted without being asked for a password.
You're saying so many arguments about not wanting to enter the password when exporting data. surely this feature would be a protection that improves the program.
Don't want to enter it? It doesn't matter i stay with enpass :-)
Reacted by cschweers, Igor Scheller, Michael Arndt and Ivan Demchuk
Enpass is an offline password manager, and it requires password for data export! If someone while working on the pc has a trojan on the PC without realizing it, it is easy to export the data unencrypted without being asked for a password.
@xantoniorx Create a new vault, Ctrl+A select all entries in the old vault, right-click and select 'Add to Vault', select your newly created vault and click 'Copy'. No password required. Just tested it for you.
Don't want to enter it? It doesn't matter i stay with enpass :-)
@xantoniorx Create a new vault, Ctrl+A select all entries in the old vault, right-click and select 'Add to Vault', select your newly created vault and click 'Copy'. No password required. Just tested it for you.
Again: bulk operations must require the password 😃
@xantoniorxQuesto spiega molte cose, ovviamente ... Non è affatto una segnalazione di una vulnerabilità della sicurezza, è un'intelligente campagna pubblicitaria.
I didn't advertise, I mentioned another offline password manager for comparison.
I just wanted to make a suggestion. I close the question. Thank you :-)
Again: bulk operations must require the password smiley
So you're saying that your file manager should ask you for your user password if you hit Crtl + A & Crtl + C because your copying too many files? Your text editor should lock your document when scrolling too many pages at once because someone could be creating a video and could be extracting information from a critical document? The browser should delete (session) cookies when switching between too many tabs?
Sorry, the foundation of your reasoning is a bit shaky.
I didn't advertise, I mentioned another offline password manager for comparison.
I just wanted to make a suggestion. I close the question. Thank you :-)
That is what you pretend to do, but not how you act.
I want to see my statement in context of password managers.
To protect you from what exactly?
attack vector: attacker gains access to the unlocked database for a very short period of time and can perform a FULL clear text export. This can happen when an authorized user leaves the room and dont lock unfortunately.
As many stated before: a bulk action password does NOT protect you against this sort of attack, for multiple reasons:
You would have to consider all passwords compromised, even if only a few would be copied, because (most likely) you don't know which ones have been copied.
There are still limitless possibilities to copy each password individually within a few seconds (keyboard/mouse macros, etc) that are almost all outside of the control of KeePassXC. Sure, copy & paste rate limits could be imposed as well. But how would that work with KeeShare? You need to come up with a solution for this as well.
(At least) Your OS user is compromised now. The attacker can replace the start menu link to KeePassXC to a compromised executable, install a key logger (hardware or software), etc. Thinking that you're okay because you have a bulk action password in KeePassXC is simply wrong.
But then again: protecting a process from unauthorized access is something that the OS is supposed to to, including the screen lock. If security has to be improved here, OS vendors should be the first point of contact to impose more restrictive screen locking settings.
Abstractly I can see only one reason for a bulk action password: It would serve as a confirmation to a maybe(?) hazardous operation. But I do not see in which cases this would actually be hazardous.
Reacted by Ivan Demchuk, Matthias Karbe and michaelk83
Imagine you have a safe at home. You left it open. Now you want a safe company to add a feature to only allow getting one bill at a time from an open safe. This would be inconvenient - sure, but would that add any security?
And your safe already has a feature that would automatically lock it after some time.
Just don't keep your safe (KeePass database) and house (PC) open.
An attacker getting their hands on an unlocked database is just bad. Full stop.
Even if they couldn't bulk-export everything at once and and even if one-by-one password copying were strictly rate-limited, they could look for individual high-value passwords and copy just those. For you as the owner of the database, it would still mean you would have to change each and every password. But most likely, you wouldn't, because you don't even know you were compromised and so the attacker could come again any time and steal another password of yours. Could we log any password access? Yes, we could, but then each simple read-only operation would be followed by a write operation, which creates a completely new massive bunch of big problems. And even then the attacker could just create a copy of the KDBX file before doing anything and restore it afterwards.
Activity
oskar2517 commentedon Jun 20, 2023
If an attacker has access to your unencrypted database, you have lost anyway. How is that even supposed to work? A website can ask you to confirm a password change by forcing you to enter your current password first but that only works because the user cannot control the backend directly. That's not the case here. The UI is running on the same computer that has been compromised.
There is some fundamental misunderstanding of how local programs work at display here.
droidmonkey commentedon Jun 20, 2023
Who submitted this? https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-35866
phoerious commentedon Jun 20, 2023
To anyone reading this: THIS IS NOT A VULNERABILITY.
A local attacker can always do anything to your database. That is by design and simply how things work. KeePassXC is not an online service, so any additional password prompt could be circumvented. Also, there is no reason for an attacker to change your password. If they have access to your unlocked database, they have access to the data in it, no matter what the password is. They also cannot lock you out, unless you fail to do backups.
phoerious commentedon Jun 20, 2023
I requested a rejection of the CVE with the following reason:
The premise of the CVE comes from a fundamental misunderstanding of KeePassXC's security model.
svenseeberg commentedon Jun 20, 2023
I totally agree that this is not a vulnerability. KeePassXC already does include a much more suitable mitigation for the stated scenario: there is a setting to lock the database when inactive. The time can be set to a very short interval, if necessary.
23 remaining items
fat-tire commentedon Jun 21, 2023
Just saw this on twitter and was at first slightly alarmed until I tracked down this issue and read the comments... yeesh.
xantoniorx commentedon Jun 21, 2023
Enpass is an offline password manager, and it requires password for data export!
If someone while working on the pc has a trojan on the PC without realizing it, it is easy to export the data unencrypted without being asked for a password.
You're saying so many arguments about not wanting to enter the password when exporting data. surely this feature would be a protection that improves the program.
Don't want to enter it? It doesn't matter i stay with enpass :-)
cschweers commentedon Jun 21, 2023
@xantoniorx That explains a lot, of course ... It is not a report of a security vulnerability at all, it is a clever advertising campaign.
phoerious commentedon Jun 21, 2023
@xantoniorx Create a new vault, Ctrl+A select all entries in the old vault, right-click and select 'Add to Vault', select your newly created vault and click 'Copy'. No password required. Just tested it for you.
Sure, stay there.
obitbef commentedon Jun 21, 2023
Again: bulk operations must require the password 😃
xantoniorx commentedon Jun 21, 2023
I didn't advertise, I mentioned another offline password manager for comparison.
I just wanted to make a suggestion. I close the question. Thank you :-)
svenseeberg commentedon Jun 21, 2023
So you're saying that your file manager should ask you for your user password if you hit Crtl + A & Crtl + C because your copying too many files? Your text editor should lock your document when scrolling too many pages at once because someone could be creating a video and could be extracting information from a critical document? The browser should delete (session) cookies when switching between too many tabs?
Sorry, the foundation of your reasoning is a bit shaky.
cschweers commentedon Jun 21, 2023
@xantoniorx
That is what you pretend to do, but not how you act.
obitbef commentedon Jun 21, 2023
@svenseeberg
I'm glad you ask. No I don't say this.
I want to see my statement in context of password managers.
svenseeberg commentedon Jun 21, 2023
To protect you from what exactly?
As many stated before: a bulk action password does NOT protect you against this sort of attack, for multiple reasons:
But then again: protecting a process from unauthorized access is something that the OS is supposed to to, including the screen lock. If security has to be improved here, OS vendors should be the first point of contact to impose more restrictive screen locking settings.
Abstractly I can see only one reason for a bulk action password: It would serve as a confirmation to a maybe(?) hazardous operation. But I do not see in which cases this would actually be hazardous.
Demivan commentedon Jun 21, 2023
This is getting ridiculous.
Imagine you have a safe at home. You left it open. Now you want a safe company to add a feature to only allow getting one bill at a time from an open safe. This would be inconvenient - sure, but would that add any security?
And your safe already has a feature that would automatically lock it after some time.
Just don't keep your safe (KeePass database) and house (PC) open.
obitbef commentedon Jun 21, 2023
I leave this discussion and have learned a lot about the threat model of KeePassXC.
Thank you to all for the explanations.
phoerious commentedon Jun 21, 2023
An attacker getting their hands on an unlocked database is just bad. Full stop.
Even if they couldn't bulk-export everything at once and and even if one-by-one password copying were strictly rate-limited, they could look for individual high-value passwords and copy just those. For you as the owner of the database, it would still mean you would have to change each and every password. But most likely, you wouldn't, because you don't even know you were compromised and so the attacker could come again any time and steal another password of yours. Could we log any password access? Yes, we could, but then each simple read-only operation would be followed by a write operation, which creates a completely new massive bunch of big problems. And even then the attacker could just create a copy of the KDBX file before doing anything and restore it afterwards.
droidmonkey commentedon Jun 21, 2023
Going to lock this since the conversation is robust and it might devolve quickly. Also since this issue is linked directly from the CVE and blog post.