Merged
Conversation
Setting MAX_AUTH_TRIES (or -T) to 0 is a valid configuration - it requires the first authentication attempt to succeed.
A ssh client queries a server whether a public key will be accepted prior to performing a real signature. Previously there was no limit on the number of queries. Public key queries are a user enumeration/privacy concern if an attacker iterates with known public keys such as those published by github (mapping to github usernames). If total privacy is required, the proper solution is to use separate authorized_keys compared to publicly used ones (or avoid services that publish public keys). As a mitigation for reused public keys, Dropbear now limits to 15 public keys attempts per session. Public key queries start being counted as failed authentication attempts after (MAX_AUTH_TRIES - MAX_PUBKEY_QUERIES). This provides a rate limit on public key queries. Reported by HD Moore, details are in the SSHamble presentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A ssh client queries a server whether a public key will be accepted
prior to performing a real signature. Previously there was no limit on
the number of queries.
Public key queries are a user enumeration/privacy concern if an attacker
iterates with known public keys such as those published by github
(mapping to github usernames). If total privacy is required, the proper
solution is to use separate authorized_keys compared to publicly used
ones (or avoid services that publish public keys).
As a mitigation for reused public keys, Dropbear now limits to 15 public
keys attempts per session. Public key queries start being counted as
failed authentication attempts after (MAX_AUTH_TRIES - MAX_PUBKEY_QUERIES).
This provides a rate limit on public key queries.
Reported by HD Moore, details are in the SSHamble presentation.