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

Update order of operations in password checking #14449

Merged
merged 3 commits into from Aug 29, 2023
Merged

Conversation

ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented Aug 29, 2023

Updates order of operations when checking user passwords and frozen/disabled status to avoid leaking account status pre-auth.

Also along the way realized we don't invalidate user sessions once they've been frozen/disabled, since we block login we should probably also block them from doing anything.

@ewdurbin ewdurbin requested a review from a team as a code owner August 29, 2023 19:29
@ewdurbin ewdurbin force-pushed the basic_auth_check_ooo branch 2 times, most recently from 3a42cea to f5fa00d Compare August 29, 2023 20:37
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

I've confirmed that the tests fail if the code isn't changed, yay!
The logical nesting and reordering makes sense.

@ewdurbin ewdurbin merged commit 1f48c86 into main Aug 29, 2023
16 checks passed
@ewdurbin ewdurbin deleted the basic_auth_check_ooo branch August 29, 2023 21:03
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

3 participants