TYPO3-PSA-2019-011: Possible Insecure Deserialization in Extbase Request Handling

Categories: Development Created by Oliver Hader
It has been discovered that TYPO3 CMS can be vulnerable to insecure deserialization.

Problem Description

It has been discovered that request handling in Extbase can be vulnerable to insecure deserialization. User submitted payload has to be signed with a corresponding HMAC-SHA1 using the sensitive TYPO3 encryptionKey as secret - invalid or unsigned payload is not deserialized.

However, since sensitive information could have been leaked by accident (e.g. in repositories or in commonly known and unprotected backup files), there is the possibility that attackers know the private encryptionKey and are able to calculate the required HMAC-SHA1 to allow a malicious payload to be deserialized.

Requirements for successfully exploiting this vulnerability (all of the following):

  • rendering at least one Extbase plugin in the frontend
  • encryptionKey has been leaked (from LocalConfiguration.php or corresponding .env file)

Solution

Update to TYPO3 versions 8.7.30 or 9.5.12 that fix the problem described.

Update April 22nd, 2020
Due to negative side-effects mentioned hardening had to be reverted in TYPO3 version 10.4.0 and 9.5.16. The issue described cannot be exploited without knowing the encryption-key. However in case an individual encryption-key has been leaked to the public, this has to be considered as critical incident.

Credits

Thanks to TYPO3 security team member Oliver Hader who analyzed and fixed the issue.

General Advice

Follow the recommendations that are given in the TYPO3 Security Guide. Please subscribe to the typo3-announce mailing list.