Skip to content

17.1.0

Latest

Choose a tag to compare

@arusinowski arusinowski released this 26 Nov 16:47
a14df5c

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.appName must 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) and Ed512 (-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 UserCredentialSourceRepository use Webauthn\CredentialRecord instead of
    Webauthn\PublicKeyCredentialSource.
  • UserCredentialSourceRepository no longer implements PublicKeyCredentialSourceRepository, and
    PublicKeyCredentialLoader no longer extends the library loader (load(string) is gone).
  • AuthenticateAdapter::createAssertionResponseValidator() was removed.
  • Options are serialized with BaseAdapter::serializeOptions(); the Webauthn2fa.* 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