#111470Share password verification between native backend and frontend authenticators
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
BeforeRequestTokenProcessedEventand 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
Related issues 2
History 37
-
Oliver Bartsch changed Related to #111399 <span data-processor="relativetime" data-value="2026-11-17T10:08:47+00:00" > 11/17/26, 10:08 </span>
-
Oliver Bartsch changed Related to #111400 <span data-processor="relativetime" data-value="2026-11-17T10:08:48+00:00" > 11/17/26, 10:08 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97746 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-17T11:52:51+00:00" > 11/17/26, 11:52 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97746 <span data-processor="relativetime" data-value="2026-11-17T15:32:27+00:00" > 11/17/26, 15:32 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97746 <span data-processor="relativetime" data-value="2026-11-17T15:36:13+00:00" > 11/17/26, 15:36 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97746 <span data-processor="relativetime" data-value="2026-11-17T15:40:12+00:00" > 11/17/26, 15:40 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %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.