Repository navigation
stages/authenticator_validate: reject malformed WebAuthn assertions as an invalid device (cherry-pick #27479 to version-2026.8) - #28392
Open
authentik-cherry-pick[bot] wants to merge 1 commit into
Conversation
…s an invalid device (#27479) validate_challenge_webauthn() only caught InvalidJSONStructure from parse_authentication_credential_json(). py_webauthn raises InvalidAuthenticationResponse when a credential field isn't valid base64url, and a bare ValueError (binascii.Error) when userHandle isn't, so such an assertion, for example a forged passwordless login, failed the flow with the error screen and a system_exception event instead of a validation error. Catch WebAuthnException and ValueError around the parse, as the WebAuthn setup stage does around verify_registration_response(). This covers both callers: the authenticator validation stage and the identification stage's passkey login.
Merged
1 of 3 tasks
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #27479 to
version-2026.8branch.Original PR: #27479
Original Author: @ryanpesek
Cherry-picked commit: 3931139