SecurityContext

CVE-2023-24814: TYPO3 - Stored XSS

  • Cve: CVE-2023-24814
  • Name: TYPO3 - Stored XSS
  • 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.
  • Impact: Attackers can inject malicious HTML that gets cached and served to other visitors, leading to persistent cross-site scripting attacks.
  • Remediation: Update to TYPO3 versions 8.7.51 ELTS, 9.5.40 ELTS, 10.4.35 LTS, 11.5.23 LTS, or 12.2.0 which fix this issue.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirements: Exploit requires specific server configurations.
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.0084
  • Epss percentile: 0.5862
  • Assignee: [email protected]
  • Published at: 2023-02-07T19:15:09Z
  • Age in days: 1386
  • Modified at: 2026-06-17T05:39:54Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-24814
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/TYPO3/typo3/security/advisories/GHSA-r4f8-f93x-5qh3nvd2023-02-07
https://typo3.org/security/advisory/typo3-core-sa-2023-001nvd2023-02-07

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/TYPO3/typo3/commit/0005a6fd86ab97eff8bf2e3a5828bf0e7cb6263aPatch
https://github.com/TYPO3/typo3/security/advisories/GHSA-r4f8-f93x-5qh3Exploit, Mitigation, Vendor Advisory
https://typo3.org/security/advisory/typo3-core-sa-2023-001Exploit, Mitigation, Vendor Advisory
https://typo3.org/security/advisory/typo3-psa-2023-001Vendor Advisory
https://github.com/TYPO3/typo3/blob/v11.5.22/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L2481-L2484Product
https://github.com/TYPO3/typo3/blob/v11.5.22/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#L2547-L2549Product

Products

ProductAffectedPlatform boundSourcesUrl
typo3:typo3>= 12.0.0, < 12.2.0; >= 11.0.0, < 11.5.23; >= 10.0.0, < 10.4.36; >= 8.7.0, < 9.7.51; >= 9.0.0, < 9.5.40nonvd/v1/products/typo3/typo3

Projects

RepositoryLink kindsIndexedUrl
TYPO3/typo3commit, fix, package, security_advisoryyes/v1/repositories/TYPO3/typo3

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2023-02-07
  • Remote: yes
  • Exposed hosts: 7312
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports