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

Harden validLoginPlaintext against timing attacks #73

Merged
merged 1 commit into from Feb 16, 2022

Conversation

dminuoso
Copy link
Contributor

@dminuoso dminuoso commented Feb 16, 2022

Right now validLoginPlaintext uses naive equality of ByteString. This gives an opportunity for timing attacks.

The PR modifies the implementation to do a mostly constant time equality instead. Mostly in the sense that a side-channel window for the configured password length still exists.

@stepcut stepcut merged commit 1b40dc6 into Happstack:master Feb 16, 2022
@stepcut
Copy link
Member

stepcut commented Feb 16, 2022

Thanks!

on hackage as happstack-server-7.7.2

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.

None yet

2 participants