#105657Enforce Strict cHash validation
Description
In TYPO3 v14, we should enforce strict cHash validation (see https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.4.x/Important-95297-StrictCHashValidationFeatureFlag.html)
Reviews 1
Related issues 1
History 914
-
Torben Hansen changed target version <span data-processor="relativetime" data-value="2024-11-21T10:05:57+00:00" > 11/21/24, 10:05 </span>
-
Torben Hansen commented and changed subject
Breaking - Enforce Strict cHash validationEnforce Strict cHash validation <span data-processor="relativetime" data-value="2024-11-23T17:35:15+00:00" > 11/23/24, 17:35 </span> -
Garvin Hicking changed category <span data-processor="relativetime" data-value="2024-12-05T07:36:55+00:00" > 12/05/24, 07:36 </span>
-
Benni Mack commented <span data-processor="relativetime" data-value="2024-12-10T17:33:17+00:00" > 12/10/24, 17:33 </span>
I do recall that some people might have issues with this setting…
-
Gerrit Code Review pushed patch set 1 for main to change 87422 status
NewUnder Review <span data-processor="relativetime" data-value="2024-12-10T17:41:58+00:00" > 12/10/24, 17:41 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87422 <span data-processor="relativetime" data-value="2025-03-22T20:40:28+00:00" > 03/22/25, 20:40 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 87422 <span data-processor="relativetime" data-value="2025-04-08T19:00:10+00:00" > 04/08/25, 19:00 </span>
-
Georg Ringer changed Related to #105266 <span data-processor="relativetime" data-value="2025-04-08T19:04:57+00:00" > 04/08/25, 19:04 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 87422 <span data-processor="relativetime" data-value="2025-04-28T19:45:48+00:00" > 04/28/25, 19:45 </span>
-
Oliver Hader changed target version <span data-processor="relativetime" data-value="2026-01-23T12:29:46+00:00" > 01/23/26, 12:29 </span>
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2026-03-31T09:05:23+00:00" > 03/31/26, 09:05 </span>
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2026-04-21T11:25:12+00:00" > 04/21/26, 11:25 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2026-05-05T08:36:55+00:00" > 05/05/26, 08:36 </span>
This is just a fyi that Semrush bot removes the cHash from the URLs it crawls as subsitemaps. While this is just one bot, other bots may do this, it might lead to potential problems (sitemaps not being loaded) when you enforce always cHash (and it’s not something you can really control from my understanding).
Ideally, the subsitemaps should not have a cHash in URLs (e.g. use routes without query parameters like in other cases).
*.*.*.* - - [29/Apr/2026:11:47:09 +0200] "GET /sitemap.xml?sitemap=zsb HTTP/1.1" 200 501 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)" mydomain [lid -] TLSv1.3 0s 48459us *.*.*.* - - [29/Apr/2026:11:47:11 +0200] "GET /sitemap.xml?sitemap=news HTTP/1.1" 200 501 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)" mydomain [lid -] TLSv1.3 0s 85383us *.*.*.* - - [29/Apr/2026:11:47:14 +0200] "GET /sitemap.xml?sitemap=unioljobs HTTP/1.1" 200 501 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)" mydomain [lid -] TLSv1.3 0s 48571us *.*.*.* - - [29/Apr/2026:11:47:16 +0200] "GET /sitemap.xml?sitemap=branchUni HTTP/1.1" 200 501 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)" mydomain [lid -] TLSv1.3 0s 50934us *.*.*.* - - [29/Apr/2026:11:47:17 +0200] "GET /sitemap.xml?page=1&sitemap=branchUni HTTP/1.1" 200 501 "-" "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)" mydomain [lid -] TLSv1.3 0s 52329us
The bot is loading the subsitemaps without the cHash.
These URLs are pretty new because I recently split up the main sitemap into several branch sitemaps (all containing subsitemaps), so URLs like /sitemap_fak5.xml?page=4&sitemap=fak5… wouldn’t have existed before 2026. Also, all my subsitemaps have cHashes in the main sitemap, so it really looks like the bot is just chopping them off (for whatever reason).
My sitemaps typically look like this:
/sitemap.xml:
- /sitemap.xml?sitemap=zsb&cHash=4ffc00cd972c228dd3cd9d267ccb3ca4
- /sitemap.xml?sitemap=news&cHash=b1a8fc3b11870d1e81485bc434c2412b
- etc.
-
Gerrit Code Review pushed patch set 5 for main to change 87422 <span data-processor="relativetime" data-value="2026-11-09T14:56:07+00:00" > 11/09/26, 14:56 </span>
Breaking change for v14