Skip to content

CVE-2023-24814 Persisted Cross-Site Scripting in Frontend Rendering in typo3

MediumCVSS 6.1 EPSS 0.84% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPNginx

Description

TYPO3 is a free and open source Content Management Framework released under the GNU General Public License. In affected versions the TYPO3 core component GeneralUtility::getIndpEnv() uses the unfiltered server environment variable PATH_INFO, which allows attackers to inject malicious content. In combination with the TypoScript setting config.absRefPrefix=auto, attackers can inject malicious HTML code to pages that have not been rendered and cached, yet. As a result, injected values would be cached and delivered to other website visitors (persisted cross-site scripting). Individual code which relies on the resolved value of GeneralUtility::getIndpEnv('SCRIPT_NAME') and corresponding usages (as shown below) are vulnerable as well. Additional investigations confirmed that at least Apache web server deployments using CGI (FPM, FCGI/FastCGI, and similar) are affected. However, there still might be the risk that other scenarios like nginx, IIS, or Apache/mod_php are vulnerable. The usage of server environment variable PATH_INFO has been removed from corresponding processings in GeneralUtility::getIndpEnv(). Besides that, the public property TypoScriptFrontendController::$absRefPrefix is encoded for both being used as a URI component and for being used as a prefix in an HTML context. This mitigates the cross-site scripting vulnerability. Users are advised to update to TYPO3 versions 8.7.51 ELTS, 9.5.40 ELTS, 10.4.35 LTS, 11.5.23 LTS and 12.2.0 which fix this problem. For users who are unable to patch in a timely manner the TypoScript setting config.absRefPrefix should at least be set to a static path value, instead of using auto - e.g. config.absRefPrefix=/. This workaround does not fix all aspects of the vulnerability, and is just considered to be an intermediate mitigation to the most prominent manifestation.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
typo3 = 11.0.0, < 11.5.23; = >= 8.7.0, < 8.7.51; = >= 9.0.0, < 9.5.40; = >= 10.0.0, < 10.4.36 +6 more 9.5.40, 9.7.51, 10.4.36, 11.5.23, 12.2.0 Fixed
typo3/cms(Packagist) = v10.0.0; = v10.1.0; = v10.2.0; = v10.2.1 +77 more 10.4.35, 11.5.23, 12.2.0 Fixed
typo3/cms-core(Packagist) = v8.7.7; = v8.7.8; = v8.7.9; = v8.7.10 +146 more 8.7.51, 9.5.40, 10.4.36, 11.5.23, 12.2.0 Fixed

Affected products

ProductAffected versionsFixed in
typo3/cms-core(Packagist) >= 12.0.0, < 12.2.0 12.2.0
typo3/cms-core(Packagist) = v12.0.0 No fix listed
typo3/cms-core(Packagist) = v12.1.0 No fix listed
typo3/cms-core(Packagist) = v12.1.1 No fix listed
typo3/cms-core(Packagist) = v12.1.2 No fix listed
typo3/cms-core(Packagist) = v12.1.3 No fix listed
typo3/cms-core(Packagist) >= 11.0.0, < 11.5.23 11.5.23
typo3/cms-core(Packagist) = v11.0.0 No fix listed
typo3/cms-core(Packagist) = v11.1.0 No fix listed
typo3/cms-core(Packagist) = v11.1.1 No fix listed
typo3/cms-core(Packagist) = v11.2.0 No fix listed
typo3/cms-core(Packagist) = v11.3.0 No fix listed
typo3/cms-core(Packagist) = v11.3.1 No fix listed
typo3/cms-core(Packagist) = v11.3.2 No fix listed
typo3/cms-core(Packagist) = v11.3.3 No fix listed
typo3/cms-core(Packagist) = v11.4.0 No fix listed
typo3/cms-core(Packagist) = v11.5.0 No fix listed
typo3/cms-core(Packagist) = v11.5.1 No fix listed
typo3/cms-core(Packagist) = v11.5.10 No fix listed
typo3/cms-core(Packagist) = v11.5.11 No fix listed
typo3/cms-core(Packagist) = v11.5.12 No fix listed
typo3/cms-core(Packagist) = v11.5.13 No fix listed
typo3/cms-core(Packagist) = v11.5.14 No fix listed
typo3/cms-core(Packagist) = v11.5.15 No fix listed
typo3/cms-core(Packagist) = v11.5.16 No fix listed
Show 175 more
ProductAffected versionsFixed in
typo3/cms-core(Packagist) = v11.5.17 No fix listed
typo3/cms-core(Packagist) = v11.5.18 No fix listed
typo3/cms-core(Packagist) = v11.5.19 No fix listed
typo3/cms-core(Packagist) = v11.5.2 No fix listed
typo3/cms-core(Packagist) = v11.5.20 No fix listed
typo3/cms-core(Packagist) = v11.5.21 No fix listed
typo3/cms-core(Packagist) = v11.5.22 No fix listed
typo3/cms-core(Packagist) = v11.5.3 No fix listed
typo3/cms-core(Packagist) = v11.5.4 No fix listed
typo3/cms-core(Packagist) = v11.5.5 No fix listed
typo3/cms-core(Packagist) = v11.5.6 No fix listed
typo3/cms-core(Packagist) = v11.5.7 No fix listed
typo3/cms-core(Packagist) = v11.5.8 No fix listed
typo3/cms-core(Packagist) = v11.5.9 No fix listed
typo3/cms-core(Packagist) >= 10.0.0, < 10.4.36 10.4.36
typo3/cms-core(Packagist) = v10.0.0 No fix listed
typo3/cms-core(Packagist) = v10.1.0 No fix listed
typo3/cms-core(Packagist) = v10.2.0 No fix listed
typo3/cms-core(Packagist) = v10.2.1 No fix listed
typo3/cms-core(Packagist) = v10.2.2 No fix listed
typo3/cms-core(Packagist) = v10.3.0 No fix listed
typo3/cms-core(Packagist) = v10.4.0 No fix listed
typo3/cms-core(Packagist) = v10.4.1 No fix listed
typo3/cms-core(Packagist) = v10.4.10 No fix listed
typo3/cms-core(Packagist) = v10.4.11 No fix listed
typo3/cms-core(Packagist) = v10.4.12 No fix listed
typo3/cms-core(Packagist) = v10.4.13 No fix listed
typo3/cms-core(Packagist) = v10.4.14 No fix listed
typo3/cms-core(Packagist) = v10.4.15 No fix listed
typo3/cms-core(Packagist) = v10.4.16 No fix listed
typo3/cms-core(Packagist) = v10.4.17 No fix listed
typo3/cms-core(Packagist) = v10.4.18 No fix listed
typo3/cms-core(Packagist) = v10.4.19 No fix listed
typo3/cms-core(Packagist) = v10.4.2 No fix listed
typo3/cms-core(Packagist) = v10.4.20 No fix listed
typo3/cms-core(Packagist) = v10.4.21 No fix listed
typo3/cms-core(Packagist) = v10.4.22 No fix listed
typo3/cms-core(Packagist) = v10.4.23 No fix listed
typo3/cms-core(Packagist) = v10.4.24 No fix listed
typo3/cms-core(Packagist) = v10.4.25 No fix listed
typo3/cms-core(Packagist) = v10.4.26 No fix listed
typo3/cms-core(Packagist) = v10.4.27 No fix listed
typo3/cms-core(Packagist) = v10.4.28 No fix listed
typo3/cms-core(Packagist) = v10.4.29 No fix listed
typo3/cms-core(Packagist) = v10.4.3 No fix listed
typo3/cms-core(Packagist) = v10.4.30 No fix listed
typo3/cms-core(Packagist) = v10.4.31 No fix listed
typo3/cms-core(Packagist) = v10.4.32 No fix listed
typo3/cms-core(Packagist) = v10.4.33 No fix listed
typo3/cms-core(Packagist) = v10.4.34 No fix listed
typo3/cms-core(Packagist) = v10.4.4 No fix listed
typo3/cms-core(Packagist) = v10.4.5 No fix listed
typo3/cms-core(Packagist) = v10.4.6 No fix listed
typo3/cms-core(Packagist) = v10.4.7 No fix listed
typo3/cms-core(Packagist) = v10.4.8 No fix listed
typo3/cms-core(Packagist) = v10.4.9 No fix listed
typo3/cms-core(Packagist) >= 9.0.0, < 9.5.40 9.5.40
typo3/cms-core(Packagist) = v9.0.0 No fix listed
typo3/cms-core(Packagist) = v9.1.0 No fix listed
typo3/cms-core(Packagist) = v9.2.0 No fix listed
typo3/cms-core(Packagist) = v9.2.1 No fix listed
typo3/cms-core(Packagist) = v9.3.0 No fix listed
typo3/cms-core(Packagist) = v9.3.1 No fix listed
typo3/cms-core(Packagist) = v9.3.2 No fix listed
typo3/cms-core(Packagist) = v9.3.3 No fix listed
typo3/cms-core(Packagist) = v9.4.0 No fix listed
typo3/cms-core(Packagist) = v9.5.0 No fix listed
typo3/cms-core(Packagist) = v9.5.1 No fix listed
typo3/cms-core(Packagist) = v9.5.10 No fix listed
typo3/cms-core(Packagist) = v9.5.11 No fix listed
typo3/cms-core(Packagist) = v9.5.12 No fix listed
typo3/cms-core(Packagist) = v9.5.13 No fix listed
typo3/cms-core(Packagist) = v9.5.14 No fix listed
typo3/cms-core(Packagist) = v9.5.15 No fix listed
typo3/cms-core(Packagist) = v9.5.16 No fix listed
typo3/cms-core(Packagist) = v9.5.17 No fix listed
typo3/cms-core(Packagist) = v9.5.18 No fix listed
typo3/cms-core(Packagist) = v9.5.19 No fix listed
typo3/cms-core(Packagist) = v9.5.2 No fix listed
typo3/cms-core(Packagist) = v9.5.20 No fix listed
typo3/cms-core(Packagist) = v9.5.21 No fix listed
typo3/cms-core(Packagist) = v9.5.22 No fix listed
typo3/cms-core(Packagist) = v9.5.23 No fix listed
typo3/cms-core(Packagist) = v9.5.24 No fix listed
typo3/cms-core(Packagist) = v9.5.25 No fix listed
typo3/cms-core(Packagist) = v9.5.26 No fix listed
typo3/cms-core(Packagist) = v9.5.27 No fix listed
typo3/cms-core(Packagist) = v9.5.28 No fix listed
typo3/cms-core(Packagist) = v9.5.29 No fix listed
typo3/cms-core(Packagist) = v9.5.3 No fix listed
typo3/cms-core(Packagist) = v9.5.30 No fix listed
typo3/cms-core(Packagist) = v9.5.31 No fix listed
typo3/cms-core(Packagist) = v9.5.4 No fix listed
typo3/cms-core(Packagist) = v9.5.5 No fix listed
typo3/cms-core(Packagist) = v9.5.6 No fix listed
typo3/cms-core(Packagist) = v9.5.7 No fix listed
typo3/cms-core(Packagist) = v9.5.8 No fix listed
typo3/cms-core(Packagist) = v9.5.9 No fix listed
typo3/cms-core(Packagist) >= 8.7.0, < 8.7.51 8.7.51
typo3/cms-core(Packagist) = v8.7.10 No fix listed
typo3/cms-core(Packagist) = v8.7.11 No fix listed
typo3/cms-core(Packagist) = v8.7.12 No fix listed
typo3/cms-core(Packagist) = v8.7.13 No fix listed
typo3/cms-core(Packagist) = v8.7.14 No fix listed
typo3/cms-core(Packagist) = v8.7.15 No fix listed
typo3/cms-core(Packagist) = v8.7.16 No fix listed
typo3/cms-core(Packagist) = v8.7.17 No fix listed
typo3/cms-core(Packagist) = v8.7.18 No fix listed
typo3/cms-core(Packagist) = v8.7.19 No fix listed
typo3/cms-core(Packagist) = v8.7.20 No fix listed
typo3/cms-core(Packagist) = v8.7.21 No fix listed
typo3/cms-core(Packagist) = v8.7.22 No fix listed
typo3/cms-core(Packagist) = v8.7.23 No fix listed
typo3/cms-core(Packagist) = v8.7.24 No fix listed
typo3/cms-core(Packagist) = v8.7.25 No fix listed
typo3/cms-core(Packagist) = v8.7.26 No fix listed
typo3/cms-core(Packagist) = v8.7.27 No fix listed
typo3/cms-core(Packagist) = v8.7.28 No fix listed
typo3/cms-core(Packagist) = v8.7.29 No fix listed
typo3/cms-core(Packagist) = v8.7.30 No fix listed
typo3/cms-core(Packagist) = v8.7.31 No fix listed
typo3/cms-core(Packagist) = v8.7.32 No fix listed
typo3/cms-core(Packagist) = v8.7.7 No fix listed
typo3/cms-core(Packagist) = v8.7.8 No fix listed
typo3/cms-core(Packagist) = v8.7.9 No fix listed
typo3/cms(Packagist) >= 10.0.0, < 10.4.35 10.4.35
typo3/cms(Packagist) = v10.0.0 No fix listed
typo3/cms(Packagist) = v10.1.0 No fix listed
typo3/cms(Packagist) = v10.2.0 No fix listed
typo3/cms(Packagist) = v10.2.1 No fix listed
typo3/cms(Packagist) = v10.2.2 No fix listed
typo3/cms(Packagist) = v10.3.0 No fix listed
typo3/cms(Packagist) = v10.4.0 No fix listed
typo3/cms(Packagist) = v10.4.1 No fix listed
typo3/cms(Packagist) = v10.4.10 No fix listed
typo3/cms(Packagist) = v10.4.11 No fix listed
typo3/cms(Packagist) = v10.4.12 No fix listed
typo3/cms(Packagist) = v10.4.13 No fix listed
typo3/cms(Packagist) = v10.4.14 No fix listed
typo3/cms(Packagist) = v10.4.15 No fix listed
typo3/cms(Packagist) = v10.4.16 No fix listed
typo3/cms(Packagist) = v10.4.17 No fix listed
typo3/cms(Packagist) = v10.4.18 No fix listed
typo3/cms(Packagist) = v10.4.19 No fix listed
typo3/cms(Packagist) = v10.4.2 No fix listed
typo3/cms(Packagist) = v10.4.20 No fix listed
typo3/cms(Packagist) = v10.4.21 No fix listed
typo3/cms(Packagist) = v10.4.22 No fix listed
typo3/cms(Packagist) = v10.4.23 No fix listed
typo3/cms(Packagist) = v10.4.24 No fix listed
typo3/cms(Packagist) = v10.4.25 No fix listed
typo3/cms(Packagist) = v10.4.26 No fix listed
typo3/cms(Packagist) = v10.4.27 No fix listed
typo3/cms(Packagist) = v10.4.28 No fix listed
typo3/cms(Packagist) = v10.4.29 No fix listed
typo3/cms(Packagist) = v10.4.3 No fix listed
typo3/cms(Packagist) = v10.4.30 No fix listed
typo3/cms(Packagist) = v10.4.31 No fix listed
typo3/cms(Packagist) = v10.4.32 No fix listed
typo3/cms(Packagist) = v10.4.33 No fix listed
typo3/cms(Packagist) = v10.4.34 No fix listed
typo3/cms(Packagist) = v10.4.4 No fix listed
typo3/cms(Packagist) = v10.4.5 No fix listed
typo3/cms(Packagist) = v10.4.6 No fix listed
typo3/cms(Packagist) = v10.4.7 No fix listed
typo3/cms(Packagist) = v10.4.8 No fix listed
typo3/cms(Packagist) = v10.4.9 No fix listed
typo3/cms(Packagist) >= 11.0.0, < 11.5.23 11.5.23
typo3/cms(Packagist) = v11.0.0 No fix listed
typo3/cms(Packagist) = v11.1.0 No fix listed
typo3/cms(Packagist) = v11.1.1 No fix listed
typo3/cms(Packagist) = v11.2.0 No fix listed
typo3/cms(Packagist) = v11.3.0 No fix listed
typo3/cms(Packagist) = v11.3.1 No fix listed
typo3/cms(Packagist) = v11.3.2 No fix listed

References