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

More authrequest fixes #5176

Merged
merged 1 commit into from
Nov 11, 2024
Merged

More authrequest fixes #5176

merged 1 commit into from
Nov 11, 2024

Conversation

dani-garcia
Copy link
Owner

We were checking the user uuid against the authrequest uuid, which would always fail and error out.

Fixes #5174

I've also noticed that we were rotating the user password hash when login in with auth request (where instead of the password, a randomly generated access code is used), this could lead to inoperable accounts.

Also tried to delete the auth requests after they were used or denied, rather than waiting for the timer to clear them up.

@nulano
Copy link

nulano commented Nov 11, 2024

I've also noticed that we were rotating the user password hash when login in with auth request (where instead of the password, a randomly generated access code is used), this could lead to inoperable accounts.

Could that have caused #4908?

@BlackDex
Copy link
Collaborator

@nulano that was my first thought too when i discussed this with @dani-garcia.
So that might very well could have been the culprit.

@BlackDex BlackDex merged commit 37c14c3 into main Nov 11, 2024
8 checks passed
@BlackDex BlackDex deleted the more_authrequest_fixes branch November 11, 2024 19:13
@dani-garcia
Copy link
Owner Author

It's unlikely, as for that to happen a lot of things would need to be happening at once, but it's definitely possible:

  • A user would need to login for the first time since the server changed the password iterations option. This can happen two ways, either the server owner changed the option, or the server got updated to version 1.28+ (which is a year old)
  • That initial login needs to be done using the login with device functionality

@nulano
Copy link

nulano commented Nov 11, 2024

I no longer recall the details very well, but I feel like those conditions could have been met in my case, so I think this very well could have been what caused my issue.

I had done a large upgrade a short time before, and was logging in on a computer I don't usually use, but I most likely used login with device to do it.

@BlackDex
Copy link
Collaborator

Yes, and since those conditions were so unlikely to happen, we never encountered those our self and also were not able to reproduce this in any sane way.

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.

Log in with device error after vaultwarden update
3 participants