Repository navigation
What's Changed
Upgrades Webauthn two-factor authentication to web-auth/webauthn-lib 5.3.13 or higher. Every
webauthn-lib release before 5.3.13 is affected by published security advisories, including forged
packed/TPM attestations, username enumeration through fake credentials and metadata checks that skip
the trust path. Requires CakePHP ^5.3 and PHP >=8.2.
Upgrade
- Apps that use Webauthn 2FA:
composer require cakedc/users:^17.1 web-auth/webauthn-lib:^5.3.13.
The plugin declares a conflict with webauthn-lib < 5.3.13, so Composer keeps an app on webauthn-lib 4
at 17.0.x until it upgrades the library. - No configuration, template or JavaScript changes.
Webauthn2fa.appNamemust be set, as before. - Security keys registered with 17.0 keep working; users do not register them again.
- A Webauthn registration or login in progress during the deploy has to be started again.
Behavior changes
- Registration no longer offers the non-standard
Ed256(-260) andEd512(-261) algorithms, which no
WebAuthn authenticator uses. - Webauthn 2FA no longer works inside an iframe of another origin: webauthn-lib 5 rejects cross-origin
responses.
API changes (apps that extend CakeDC\Users\Webauthn classes)
- Adapters and
UserCredentialSourceRepositoryuseWebauthn\CredentialRecordinstead of
Webauthn\PublicKeyCredentialSource. UserCredentialSourceRepositoryno longer implementsPublicKeyCredentialSourceRepository, and
PublicKeyCredentialLoaderno longer extends the library loader (load(string)is gone).AuthenticateAdapter::createAssertionResponseValidator()was removed.- Options are serialized with
BaseAdapter::serializeOptions(); theWebauthn2fa.*session keys hold
JSON strings instead of objects.
See the migration guide: https://github.com/CakeDC/users/blob/17.1.0/Docs/Documentation/Migration/17.0-17.1.md
Full Changelog: 17.0.0...17.1.0