mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[PR #6168] [MERGED] Fix WebauthN issue with Software Keys #3737
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/6168
Author: @BlackDex
Created: 8/10/2025
Status: ✅ Merged
Merged: 8/10/2025
Merged by: @dani-garcia
Base:
main← Head:fix-webauthn📝 Commits (1)
2a2a4a5Fix WebauthN issue with Software Keys📊 Changes
1 file changed (+9 additions, -6 deletions)
View changed files
📝
src/api/core/two_factor/webauthn.rs(+9 -6)📄 Description
The check if the token used was a known valid token also checked if it needed to be updated. This check caused always caused an issue with tokens which do not need or want to be updated.
Since the cred_ids are already checked and deemed valid we only need to check if there is an updated needed. Their already is a function for this
update_credential, which returnsSome(true)if this was the case. So, only update the records if that is the case, else do not update anything.Also, used constant time compare to check and validate the cred_id's.
P.S. I tested this with macOS where the key was created, and iOS which synced the key.
Same for Bitwarden, used the Firefox Extension to register and my Android to authenticate.
The YubiKey5c still works too, both USB or NFC.
Fixes #6154
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.