Review 14.3 Ready for review

98313[TASK] Log failed backend password resets to sys_log

Georg Ringer CR 0 V 0 Normal +195 −28 updated 12/04/26, 08:22

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 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/13/98313/2 && git checkout FETCH_HEAD
Cherry-pick onto 14.3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/13/98313/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 4

Review log 24

  1. Georg Ringer uploaded patch set 1 12/04/26, 08:13

  2. Georg Ringer uploaded patch set 2 12/04/26, 08:15

  3. core-ci voted on patch set 1 V -1 12/04/26, 08:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116291

  4. core-ci voted on patch set 2 V +1 12/04/26, 08:22 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116292