#111643Cache flush AJAX request is sent with Content-Type: text/plain, blocked by OWASP CRS rule 920420
Description
Description
When an editor clicks “Flush all caches” in the backend toolbar, the backend sends a POST request to: /typo3/ajax/cache/group/all/flush
The request expects a JSON response (Accept: application/json), but it is sent with Content-Type: text/plain;charset=UTF-8
Sites behind a WAF running the OWASP Core Rule Set block this request. CRS rule 920420 (“Request content type is not allowed by policy”) does not allow text/plain by default, so the request gets HTTP 403 and editors cannot flush caches.
Steps to reproduce
Put a TYPO3 v13 or v14 backend behind Coraza with OWASP CRS v4 at default settings.
Click “Flush all caches” in the backend toolbar.
The request is blocked by rule 920420.
Expected behaviour
The request sends a Content-Type that CRS allows (e.g. application/json)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Cache flush AJAX request is sent with Content-Type: text/plain, blocked by OWASP CRS rule 920420 Resolves: #111643 Releases: main