MediumGHSA-v6xv-rmqc-wcc8CVE-2014-9508

Typo3 Open Redirect In Frontend Rendering

Published 17 May 2022 · Updated 30 Nov 2024

Affected packages

typo3/cmsComposer
Affected
>=4.5.0 <4.5.39
Fixed in
4.5.39
Update to the fixed version for your release line, for example:composer require typo3/cms:^4.5.39
typo3/cmsComposer
Affected
>=4.6.0 <6.2.9
Fixed in
6.2.9
Update to the fixed version for your release line, for example:composer require typo3/cms:^6.2.9
typo3/cmsComposer
Affected
>=7.0.0 <7.0.2
Fixed in
7.0.2
Update to the fixed version for your release line, for example:composer require typo3/cms:^7.0.2

Details

The frontend rendering component in TYPO3 4.5.x before 4.5.39, 4.6.x through 6.2.x before 6.2.9, and 7.x before 7.0.2, allows remote attackers to change URLs to arbitrary domains.

An attacker could forge a request which modifies anchor only links on the homepage of a TYPO3 installation such that they point to arbitrary domains, if the configuration option config.prefixLocalAnchors is used with any possible value. TYPO3 versions 4.6.x and higher are only affected if the homepage is not a shortcut to a different page. As an additional pre-condition, URL rewriting must be enabled in the web server (which it typically is) when using extensions like realurl or cooluri.

Installations where config.absRefPrefix is additionally set to any value are not affected by this vulnerability.

Example of affected configuration:

config.absRefPrefix =
config.prefixLocalAnchors = all 
page = PAGE 
page.10 = TEXT 
page.10.value = <a href="#skiplinks">Skiplinks</a> 
.htaccess:

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteRule .* index.php [L] 

Is GHSA-v6xv-rmqc-wcc8 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected typo3/cms, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.