Review main Ready for review

98003[TASK] Log failed backend password resets to sys_log

Benni Mack CR +1 V +1 Normal +195 −28 updated 12/04/26, 23:42

Commit message

The backend password reset adds an entry to sys_log when a reset
is requested and when it succeeds, but a failed reset only reached
the PSR-3 logger. Administrators could not see in the backend log
that a reset link was used without success or was manipulated.

Failed resets of a known backend user are now logged to sys_log
with the new login action PASSWORD_RESET_FAILED and the reason in
the log data:

* invalidToken: the token does not match, because the token or
  the expiration date was changed or the link was already used
  (security notice)
* expiredToken: the link has expired (warning)
* emptyPassword, passwordMismatch, passwordPolicy: the new
  password was rejected (warning)

The token is now checked before the expiration date, so that an
expired link can be told apart from a manipulated one.

A reset link whose identity matches no backend user is still only
logged through the PSR-3 logger, so that anonymous requests cannot
flood sys_log.
Show more Show less
Resolves: #111574
Releases: main, 14.3
Signed-off-by: Benni Mack <benni@typo3.org>
Change-Id: Ib4d664fc7b8314d2918abc297809650a7c3a3b12

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/03/98003/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/03/98003/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Simon Schaufelberger +1
    • Garvin Hicking +1
    • Alexander Schnitzler +1
  • Verified V +1 Needs a vote
    • Simon Schaufelberger +1
    • Garvin Hicking +1
    • Alexander Schnitzler +1
    • core-ci +1 CI

Merge conflicts 3

Issues 1

Files 4

Review log 45

  1. Benni Mack uploaded patch set 1 11/25/26, 09:25

  2. core-ci voted on patch set 1 V +1 11/25/26, 09:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115389

  3. Alexander Schnitzler voted on patch set 1 CR +1 V +1 12/04/26, 08:06

  4. Simon Schaufelberger voted on patch set 1 CR +1 V +1 12/04/26, 19:35

  5. Garvin Hicking voted on patch set 1 CR +1 V +1 12/04/26, 23:42