Issue Feature Under Review

#111619Redirects: allow editors to manage redirects for hosts that are not handled by a TYPO3 site

David Prodinger 11/26/26, 12:37 updated 11/27/26, 09:59

Description

Since the fix for CVE-2025-59021 (12.4.41, 13.4.23, 14.0.2) editors can only manage redirects where the source host belongs to a site in their webmounts. Thats fine from security side, but it breaks a quite common case for us: domains which point to the TYPO3 instance only for redirects and have no site config at all.

For example marketing/campaign domains like promo-example.com → https://www.example.com/campaign/. Before, the editors maintained these redirects by themselves, now only admins can do it and every new campaign redirect ends as a support ticket at the agency.

Adding a site config only for the redirects is not really an option (needs a root page, editors need webmount on it). Wildcard (*) doesn’t help either, because it matches all hosts.

Steps to reproduce

  1. TYPO3 12.4.41+ / 13.4.23+ with ext:redirects and one site www.example.com
  2. Point promo-example.com to the same instance, without site config
  3. As admin create a redirect with source host promo-example.com, works fine in frontend
  4. Login as editor with access to redirects module, sys_redirect and webmount on www.example.com
  5. Open the redirects module

Actual result: Source host selector offers only www.example.com and *. The editor cannot see, create or edit the redirect for promo-example.com.

Expected result: Integrator can allow such foreign hosts explicitly for certain users or groups.

Proposal

Opt-in allow list via user/group TSconfig, this is also how we solved it in our project:

redirects.allowedHosts {
  10 = promo-example.com
  20 = www.promo-example.com
}

These hosts get added to SourceHostProvider::getHosts(). Hosts of configured sites must be ignored, even if listed, so the security fix stays intact. Admins are not affected.

Smaller alternative: a PSR-14 event in SourceHostProvider, so extensions can modify the hosts. Right now the class is final and @internal, so there is no clean way.

Workaround

We use a backend middleware after typo3/cms-backend/authentication. It reads redirects.allowedHosts, removes all site hosts and overwrites the runtime cache entries of SourceHostProvider (RedirectsSourceHostProvider, RedirectsSourceHostProvider-wildcard). It works on v12 and v13, but of course it depends on the exact internal structure. Any change would break our solution.

Maybe related: #108804 (same class, sites on subpages of webmount) and #109199 (no redirects without access to site root).

Reviews 1

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98100 status New Under Review 11/27/26, 09:59