Skip to content

1.4.3: se7enxweb/expcomponents-authentication, Exponential's fork of Zeta Components Authentication

Latest

Choose a tag to compare

@se7enxweb se7enxweb released this 25 Nov 09:40
· 1 commit to master since this release

se7enxweb/expcomponents-authentication 1.4.3 is Exponential's fork of Zeta Components Authentication. Install: composer require se7enxweb/expcomponents-authentication:~1.4.3

Changes

  • Fixed: The LDAP filter escapes the username in the search filter, so a
    username can no longer change the LDAP query (pull request #1).

  • Fixed: The session ID is regenerated when a user is authenticated or the
    authenticated user changes, against session fixation; regenerateId()
    returns whether it could regenerate (no active session or headers already
    sent: it does nothing) (pull request #2).

  • Fixed: The htpasswd filter compares the password in constant time
    (pull request #4).

  • Fixed: Authentication fails when no filter was added or a group of filters
    is empty (pull request #3).

    BEHAVIOUR CHANGE: ezcAuthentication::run() without any filter, and an
    ezcAuthenticationGroupFilter without filters, used to succeed (fail open).
    They now fail (fail closed). Code that relied on an empty filter list to
    let every request through must add the filter it means. The Exponential
    kernel's REST authentication always adds its filter and is not affected.

Verified

Test suite on PHP 7.4, 8.0 and 8.5 on the node (252 tests, 228 on 1.4.2; the only failures are four unwritable-file tests that fail as root, as on 1.4.2); GitHub Actions (CI and Tests) green on the release commit. The Exponential kernel's REST authentication always adds a filter, so the fail-closed change does not affect it.