Issue Task Resolved

#111470Share password verification between native backend and frontend authenticators

Oliver Bartsch 11/17/26, 10:08 updated 11/17/26, 16:10

Description

The native password authenticators of the authentication pipeline exist twice: TYPO3\CMS\Backend\Security\PasswordAuthenticator (#111399) and TYPO3\CMS\Frontend\Security\FrontendPasswordAuthenticator (#111400). Large parts of both are identical apart from the login type (‘BE’/‘FE’) and the user table:

  • request token check, including BeforeRequestTokenProcessedEvent and the revocation of the signing secret
  • password hash lookup, verification and rehashing
  • timing mimicry for unknown usernames (CWE-208)
  • update of the login timestamp
  • the sanitized login data passed to LoginAttemptFailedEvent

Two copies of security relevant code will drift apart over time.

Proposal

Extract the shared part into one internal service in TYPO3\CMS\Core\Authentication\Pipeline, parameterized by login type and user table, and use it from both authenticators. Behaviour stays unchanged; the existing functional tests of both authenticators cover it.

Follow-up of #111399 and #111400, to be done once both are merged.

Reviews 1

History 37

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-17T16:10:12+00:00" > 11/17/26, 16:10 </span>

    Applied in changeset commit:0577222b700cf38c9649b8dafd70d7eecffbba0b.