Skip to content

Avoid wrongly filtering Yubikey4 devices#15975

Merged
codingllama merged 2 commits into
masterfrom
codingllama/yubi4
Aug 31, 2022
Merged

Avoid wrongly filtering Yubikey4 devices#15975
codingllama merged 2 commits into
masterfrom
codingllama/yubi4

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Fixes an issue where libfido2 code wrongly interprets libfido2.ErrUserPresenceRequired as libfido2.ErrNoCredentials.

Added some logging for good measure.

#14657

@github-actions github-actions Bot removed the request for review from tobiaszheller August 31, 2022 07:56
@codingllama codingllama enabled auto-merge (squash) August 31, 2022 13:48
@codingllama codingllama merged commit b420aa8 into master Aug 31, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@codingllama See the table below for backport results.

Branch Result
branch/v10 Create PR

@codingllama codingllama deleted the codingllama/yubi4 branch August 31, 2022 16:39
codingllama added a commit that referenced this pull request Sep 1, 2022
Fixes an issue where libfido2 code wrongly interprets
`libfido2.ErrUserPresenceRequired` as `libfido2.ErrNoCredentials`.

Added some logging for good measure.

#14657

Backport #15975 to branch/v10

* Simulate Yubikey4 UP=false behavior
* Avoid wrongly filtering Yubikey4 devices
codingllama added a commit that referenced this pull request Sep 27, 2022
U2F devices, like the Yubikey4, fail in a slightly unexpected way when
assertions set UP=false. Handle this edge case and also make sure that failures
when checking for excluded credentials won't break the entire ceremony.

Similar to #15975, but in the registration flow this time.

Repro steps:

1. Register a Yubikey 4
2. Attempt to register a different security key
3. Registration fails with a "user presence required" error
codingllama added a commit that referenced this pull request Sep 27, 2022
…6765)

U2F devices, like the Yubikey4, fail in a slightly unexpected way when
assertions set UP=false. Handle this edge case and also make sure that failures
when checking for excluded credentials won't break the entire ceremony.

Similar to #15975, but in the registration flow this time.

Repro steps:

1. Register a Yubikey 4
2. Attempt to register a different security key
3. Registration fails with a "user presence required" error

Backport #16737 to branch/v10
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.

4 participants