Repository navigation
stages/authenticator_validate: reject malformed WebAuthn assertions as an invalid device (cherry-pick #27479 to version-2026.11) - #28393
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.
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## version-2026.11 #28393 +/- ##
===================================================
- Coverage 93.71% 93.71% -0.01%
===================================================
Files 1261 1261
Lines 91415 91440 +25
Branches 5752 5752
===================================================
+ Hits 85674 85696 +22
- Misses 5655 5658 +3
Partials 86 86
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 46770552599 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e9c3501e26c38086ea0699b50aecef1c5dc68886
# Distroless image: AUTHENTIK_TAG=gh-e9c3501e26c38086ea0699b50aecef1c5dc68886-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-e9c3501e26c38086ea0699b50aecef1c5dc68886
# Distroless image: tag: gh-e9c3501e26c38086ea0699b50aecef1c5dc68886-distrolessAfterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #27479 to
version-2026.11branch.Original PR: #27479
Original Author: @ryanpesek
Cherry-picked commit: 3931139