Skip to content

stages/authenticator_validate: reject malformed WebAuthn assertions as an invalid device (cherry-pick #27479 to version-2026.11) - #28393

Open
authentik-cherry-pick[bot] wants to merge 1 commit into
version-2026.11from
cherry-pick/27479-to-version-2026.11
Open

authentik-cherry-pick[bot] wants to merge 1 commit into
version-2026.11from
cherry-pick/27479-to-version-2026.11

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #27479 to version-2026.11 branch.

Original PR: #27479
Original Author: @ryanpesek
Cherry-picked commit: 3931139

…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.
@netlify

netlify Bot commented Dec 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit e9c3501
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6b0f58c2332065f7387f37f0
😎 Deploy Preview https://deploy-preview-28393--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit e9c3501
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6b0f58c200e59a54b05f442f
😎 Deploy Preview https://deploy-preview-28393--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e9c3501
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b0f58c2690c80ae2fc0e764
😎 Deploy Preview https://deploy-preview-28393--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.71%. Comparing base (0c9d581) to head (e9c3501).
✅ All tests successful. No failed tests found.

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              
Flag Coverage Δ
conformance 29.25% <3.70%> (-0.01%) ⬇️
e2e 33.69% <3.70%> (+0.16%) ⬆️
integration 26.92% <3.70%> (-0.01%) ⬇️
rust 62.37% <ø> (ø)
unit 94.89% <100.00%> (+<0.01%) ⬆️
unit-migrate 94.90% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download 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-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-distroless

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush GirlBossRush self-assigned this Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants