-
Notifications
You must be signed in to change notification settings - Fork 404
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
added option to disable trivial auth methods #128
Conversation
I have renamed to argument to |
Would you merge this pull request, because we are planning to create a CVE and I think this should be mitigated before we publish a full disclosure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'll try to get it merged soon.
cli-authpubkey.c
Outdated
@@ -266,6 +266,7 @@ int cli_auth_pubkey() { | |||
/* Send a trial request */ | |||
send_msg_userauth_pubkey(key, sigtype, 0); | |||
cli_ses.lastprivkey = key; | |||
cli_ses.is_trivial_auth = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't clear is_trivial_auth here since it doesn't require any user interaction? For pubkey auth I guess it should clear is_trivial_auth for an agent pubkey signature (not trial request), otherwise leave it set.
@@ -176,6 +176,7 @@ static void send_msg_userauth_pubkey(sign_key *key, enum signature_type sigtype, | |||
buf_putbytes(sigbuf, ses.writepayload->data, ses.writepayload->len); | |||
cli_buf_put_sign(ses.writepayload, key, sigtype, sigbuf); | |||
buf_free(sigbuf); /* Nothing confidential in the buffer */ | |||
cli_ses.is_trivial_auth = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I have fixed trivial auth detection for public keys. It should work now as expected.
Hello, we are planning to release information about trivial succes authentication. Do you need help with merging the pull requests and creating the new release? |
I have added an option
-o ExitOnTrivialAuth=yes
to disable trivial authentications as discussed in our mails