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

Fix encrypted lastUsedDate #4972

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

BlackDex
Copy link
Collaborator

It appears that some password histories have an encrypted value on the lastUsedDate Instead of only checking if it is a string, also check if it is a valid RFC Date/Time String. If not, set it also to epoch 0.

It appears that some password histories have an encrypted value on the `lastUsedDate`
Instead of only checking if it is a string, also check if it is a valid RFC Date/Time String.
If not, set it also to epoch 0.

Signed-off-by: BlackDex <[email protected]>
@BlackDex BlackDex marked this pull request as ready for review September 20, 2024 16:08
@dani-garcia dani-garcia merged commit 7d6dec6 into dani-garcia:main Sep 20, 2024
5 checks passed
@BJReplay
Copy link

Retested and confirmed working.

Thanks @BlackDex for working with me on this edge case!

@BlackDex BlackDex deleted the fix-pw-history-part-three branch September 21, 2024 05:51
@BlackDex
Copy link
Collaborator Author

@BJReplay thanks for sharing data. Without it out would not be possible to fix.

BlackDex added a commit to BlackDex/vaultwarden that referenced this pull request Oct 5, 2024
It appears that some password histories have an encrypted value on the `lastUsedDate`
Instead of only checking if it is a string, also check if it is a valid RFC Date/Time String.
If not, set it also to epoch 0.

Signed-off-by: BlackDex <[email protected]>
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.

3 participants