Skip to content

Password for export and change password #9339

Closed as not planned
Closed as not planned

Description

@xantoniorx

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.

Activity

  1. self-assigned this
    on May 5, 2023
  2. added this to the v2.8.0 milestone on May 5, 2023
  3. oskar2517 commented on Jun 20, 2023

    @oskar2517

    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.

  4. droidmonkey commented on Jun 20, 2023

    @droidmonkey
    Member
  5. phoerious commented on Jun 20, 2023

    @phoerious
    Member

    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.

  6. phoerious commented on Jun 20, 2023

    @phoerious
    Member

    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.

  7. svenseeberg commented on Jun 20, 2023

    @svenseeberg

    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.

  8. 23 remaining items

  9. fat-tire commented on Jun 21, 2023

    @fat-tire

    Just saw this on twitter and was at first slightly alarmed until I tracked down this issue and read the comments... yeesh.

  10. xantoniorx commented on Jun 21, 2023

    @xantoniorx
    Author

    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 :-)

  11. cschweers commented on Jun 21, 2023

    @cschweers

    @xantoniorx That explains a lot, of course ... It is not a report of a security vulnerability at all, it is a clever advertising campaign.

  12. phoerious commented on Jun 21, 2023

    @phoerious
    Member

    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 :-)

    Sure, stay there.

  13. obitbef commented on Jun 21, 2023

    @obitbef

    @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 😃

  14. xantoniorx commented on Jun 21, 2023

    @xantoniorx
    Author

    @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 :-)

  15. svenseeberg commented on Jun 21, 2023

    @svenseeberg

    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.

  16. cschweers commented on Jun 21, 2023

    @cschweers

    @xantoniorx

    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.

  17. obitbef commented on Jun 21, 2023

    @obitbef

    @svenseeberg

    So you're saying that your file manager ...

    I'm glad you ask. No I don't say this.
    I want to see my statement in context of password managers.

  18. svenseeberg commented on Jun 21, 2023

    @svenseeberg

    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.

  19. Demivan commented on Jun 21, 2023

    @Demivan

    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.

  20. obitbef commented on Jun 21, 2023

    @obitbef

    I leave this discussion and have learned a lot about the threat model of KeePassXC.
    Thank you to all for the explanations.

  21. phoerious commented on Jun 21, 2023

    @phoerious
    Member

    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.

  22. droidmonkey commented on Jun 21, 2023

    @droidmonkey
    Member

    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.

  23. locked and limited conversation to collaborators on Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions