Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Private Key file as a Temporary file is accessible by every user by default #389

Open
Chocaute opened this issue Jun 9, 2023 · 3 comments

Comments

@Chocaute
Copy link

Chocaute commented Jun 9, 2023

Greetings,

Case in point,

Case in point.

I know this is a temporary file, but doesn't this defeat the point of KeePass?

For context, I used this feature as a step to stymie having lots of SSH keys loaded at once.

EDIT: Turns out "IdentityFile C:\path\to\hostsKeys\%h" and "IdentitiesOnly yes" in my ssh config file can handle this particular problem just fine. As an added bonus, KeeAgent doesn't blast all of its public keys to untrusted servers anymore. I've elected to leave my keys where they are, to manage new key passwords with KeyPass and use KeeAgent as automatic login.

I feel like my original point still stands, but if it's working as intended, feel free to close this issue.

@Gnarfoz
Copy link

Gnarfoz commented Jan 10, 2024

Note: SYSTEM is the highest privileged user on Windows. You seem to have it mixed up with Everyone?

@Chocaute
Copy link
Author

Note: SYSTEM is the highest privileged user on Windows. You seem to have it mixed up with Everyone?

Not at all, I was just kind of miffed that one of my private key file was accessible to every user on my system (Which is me and my brother) in some temp folder.

It's not that it's an actually issue, but shouldn't private key files be only accessible to its owner?

@Gnarfoz
Copy link

Gnarfoz commented Jan 19, 2024

Your screenshot does not show which privileges each of those users has, though. What do the privileges for Arian and Willy look like?
I recommend looking in the advanced settings.

I tried reproducing this. I created an additional local user and turned on that option to save the attachment to a temporary file.
The "KeeAgent" folder in my %temp% folder, as well as the temporary file within it, exclusively have inherited permissions, no explicit ones:
image
No sign of the other user I created.

Most likely, you granted access to the other user at some point in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants