Skip to content

fix (htpasswd): restrict password==hash acceptance #821

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

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

Conversation

TobiasKaiser
Copy link

For htpasswd entries where hash is an actual valid hash (SHA etc.), the hash itself should not be accepted as password. Otherwise, obtaining the htpasswd file gives an attacker access to all accounts withoutneeding to crack/reverse hashes.

This commit tries to ensure that hash==password is only accepted if hash is not a valid hash (plaintext password fallback).

For htpasswd entries where hash is an actual valid hash (SHA etc.), the hash
itself should not be accepted as password. Otherwise, obtaining the htpasswd
file gives an attacker access to all accounts withoutneeding to crack/reverse
hashes.

This commit tries to ensure that hash==password is only accepted if hash is
not a valid hash (plaintext password fallback).
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.

1 participant