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

Fix timing attack on login form (opr #676) #39

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Fix timing attack on login form (opr #676) #39

merged 1 commit into from
Apr 29, 2019

Conversation

jwag956
Copy link
Member

@jwag956 jwag956 commented Apr 29, 2019

As detailed in #357 the time it takes to process a login request is
considerably less if the user specified doesn't exist than if the
password is incorrect. This can be used as a user enumeration attack,
even if the login error messages were customized to avoid this.

I fixed it by increasing the response time of a non-existing user
request by hashing the given password anyway (if using good
password hashing algorithm this is what takes a relatively
large amount of time and makes the attack possibly).

closes #357

As detailed in #357 the time it takes to process a login request is
considerably less if the user specified doesn't exist than if the
password is incorrect. This can be used as a user enumeration attack,
even if the login error messages were customized to avoid this.

I fixed it by increasing the response time of a non-existing user
request by hashing the given password anyway (if using good
password hashing algorithm this is what takes a relatively
large amount of time and makes the attack possibly).

closes #357
@jwag956 jwag956 merged commit 4666fc1 into master Apr 29, 2019
@jwag956 jwag956 deleted the opr676 branch April 29, 2019 01:38
@jwag956 jwag956 changed the title Fix timing attack on login form Fix timing attack on login form (opr #676) Apr 29, 2019
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.

Avoid Timing Attack
2 participants