Review main Merged Breaking

82666[!!!][TASK] Deprecate and replace extbase HashService

Torben Hansen CR +2 V +2 Hard +366 −90 updated 01/28/24, 20:08

Commit message

This change deprecates the class
`TYPO3\CMS\Extbase\Security\Cryptography\HashService`.

Due to the deprecation, all usages of the class in TYPO3 core
have been replaced with the new class
`TYPO3\CMS\Core\Crypto\HashService`. The new HashService
incorporates an additional secret for hash generation to prevent
hash reuse across different contexts, enhancing the security of
generated hashes.

The change results in the following breaking changes.

Many of the code changes itself are not *strictly* breaking since
most of the affected code is marked @internal. In this special
case however, we decided to go with full blown deprecation
documentation files, though.

- Frontend user password recovery hashes generated with versions
prior to TYPO3 v13 are invalidated due to the replacement of the
HashService. Users with valid, non-expired recovery links will
need to request new ones.

- Custom extensions relying on
`TYPO3\CMS\Extbase\Security\Cryptography\HashService` for property
types or expecting its presence will encounter PHP Fatal errors.
This affects various `@internal` properties across the TYPO3 core
and extensions.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 23

Show 3 more files