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

Refuse to process malformed SSH public key files #111

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

ppentchev
Copy link

Hi

Thanks for keeping keychain alive!

What do you think about this change that improves its behavior when pointed at an almost-valid SSH public key file?

Thanks in advance, and keep up the great work!

G'luck,
Peter

If the user specifies a file that looks like an SSH public key file,
but it does not contain exactly one SSH public key (either it contains
none or the fingerprint is wrong or there is another key appended at
the end), keychain will misinterpret the "fingerprint" of the key file
and always try to load the corresponding private key.  This may lead
to repeated passphrase prompts and general user confusion.

A trivial way to reproduce this is to append a second line containing
the fingerprint of another SSH public key to a keyfile.

Debian bug:	https://bugs.debian.org/673019
Reported by:	Ryan Kavanagh <[email protected]>
@mrl5
Copy link

mrl5 commented Jul 16, 2022

hello, @ppentchev - first of all thank you for the PR and sorry that someone responded after >3 years

the reason why your PR didn't get any attention is that this is a mirror repository.

Funtoo Linux contribution process happens via https://code.funtoo.org

if you're still interested in contributing to Funtoo Linux you might be interested in this links:

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

Successfully merging this pull request may close these issues.

2 participants