#95297cHash not enforced for Extbase actions anymore
Description
TYPO3 8.5 introduced a new behaviour.
URIs to Extbase actions now need a valid cHash per default. This is required for both cached and uncached actions
Calling a link to an extbase-action without cHash would lead to an exception.
Now in v10 it looks like this behaviour is not anymore.
Issue
Opening a link to an extbase-action without chash just works.
Expected behaviour
Opening a link to an extbase-action without chash should fail.
Example URL
Possible cause
Here changed a lot. Not only things got deprecated.
CacheHashEnforce was removed in favor of handling in PageArgumentValidator middleware.
It looks like, that “dynamic” extbase-action-arguments were not considered in this changeset. Now CacheHashCalculator don’t know them and therefore they are not enforced anymore.
Hotfix / quickfix
Add params manually to requireCacheHashPresenceParameters.
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['requireCacheHashPresenceParameters'] = [
'^tx_fooext_fooplugin',
];
Real fix suggestion
Either populate requireCacheHashPresenceParameters dynamically or use another way to enforce cHash for Extbase actions again.
Reviews 7
- 12.4 89657[BUGFIX] Ignore 'logintype' for cHash validation
- 13.4 89656[BUGFIX] Ignore 'logintype' for cHash validation
- main 89647[BUGFIX] Ignore 'logintype' for cHash validation
- main 79407[WIP][!!!][TASK] Always enable TYPO3_CONF_VARS[FE][cacheHash][enforceValidation]
- 10.4 77714[BUGFIX] Enforce validation when no cHash is given
- 11.5 77712[BUGFIX] Enforce validation when no cHash is given
- main 77206[BUGFIX] Enforce validation when no cHash is given