Skip to content

rpcserver: Check unauthorized access in const time. #2509

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

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

jrick
Copy link
Member

@jrick jrick commented Dec 14, 2020

The comparisons of the hashed authentication details against the
expected values was constant time, but the checks for whether
successful auth matched the admin or limited privileges was not.
Correct this by performing the bitwise OR of each before comparing.

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be rebased to resolve the merge conflict, but looks good.

The comparisons of the hashed authentication details against the
expected values was constant time, but the checks for whether
successful auth matched the admin or limited privileges was not.
Correct this by performing the bitwise OR of each before comparing.
@davecgh davecgh changed the title rpcserver: Check unauthorized access in constant time rpcserver: Check unauthorized access in const time. Dec 14, 2020
@davecgh davecgh merged commit b2b47b1 into decred:master Dec 14, 2020
@jrick jrick deleted the consttime branch December 14, 2020 19:23
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.

2 participants