Skip to content

fix: harden ClientOverridePolicy defaults#815

Merged
Spomky merged 1 commit into5.3.xfrom
fix/harden-client-override-policy-defaults
Mar 10, 2026
Merged

fix: harden ClientOverridePolicy defaults#815
Spomky merged 1 commit into5.3.xfrom
fix/harden-client-override-policy-defaults

Conversation

@Spomky
Copy link
Copy Markdown
Contributor

@Spomky Spomky commented Mar 10, 2026

Summary

  • ClientOverridePolicy::canOverride() fallback changed from ?? true to ?? false (defense in depth)
  • Default user_verification.enabled changed from true to false
  • Default user_verification.allowed_values changed from ['required', 'preferred', 'discouraged'] to ['required', 'preferred']

Client requests cannot override the server-configured userVerification value by default. Administrators who need client-side override flexibility can explicitly opt in via the client_override_policy configuration.

Thanks to @restriction for reporting this issue.

Test plan

  • Existing tests pass (AuthenticatorSelectionCriteriaConfigTest, Issue797RegressionTest)
  • Verify that default Symfony bundle configuration denies userVerification override
  • Verify that explicit enabled: true still allows overrides when configured

… downgrade

Change default client override policy for user_verification to deny
overrides by default and exclude 'discouraged' from allowed values.
This prevents a client from downgrading userVerification to bypass
biometric/PIN requirements configured server-side.

- ClientOverridePolicy::canOverride() now defaults to false for unknown fields
- user_verification.enabled defaults to false (was true)
- user_verification.allowed_values defaults to ['required', 'preferred'] (was ['required', 'preferred', 'discouraged'])

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Spomky Spomky self-assigned this Mar 10, 2026
@Spomky Spomky added the enhancement New feature or request label Mar 10, 2026
@Spomky Spomky added this to the 5.3.0 milestone Mar 10, 2026
@Spomky Spomky merged commit 2ef95e6 into 5.3.x Mar 10, 2026
11 checks passed
@Spomky Spomky deleted the fix/harden-client-override-policy-defaults branch March 10, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant