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

BED-5264: Defend against time-based enumeration #1167

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

wes-mil
Copy link
Contributor

@wes-mil wes-mil commented Feb 24, 2025

Description

Add arbitrary hash checking in failure cases prior to actually checking the hash to ensure time consistency.

Motivation and Context

This PR addresses: BED-5264

Why is this change required? What problem does it solve?

Resolves potential security concern.

How Has This Been Tested?

Tested locally showing that user not found errors and user found errors both take between 1.5 and 2 seconds to complete arbitrarily.

Screenshots (optional):

Types of changes

  • Chore (a change that does not modify the application functionality)

Checklist:

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