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

Merged
merged 6 commits into from
Feb 27, 2025
Merged

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

merged 6 commits into from
Feb 27, 2025

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:

@urangel urangel added the api A pull request containing changes affecting the API code. label Feb 26, 2025
@wes-mil wes-mil merged commit 96db060 into main Feb 27, 2025
8 checks passed
@wes-mil wes-mil deleted the BED-5264 branch February 27, 2025 00:40
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api A pull request containing changes affecting the API code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants