Bug #104410
closedCreate new content element - Forbidden (Error 403) on Apache 2.4.60+
0%
Description
When opening the New Content Element Wizard, the following error message appears:
Forbidden You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Since version 2.4.60, Apache has closed the security vulnerability https://www.cve.org/CVERecord?id=CVE-2024-38474 by no longer allowing encoded question marks in URLs. This leads to the problem described above. Similar problems have also been reported in the Contao community.
By setting the UnsafeAllow3F
flag, the original behaviour of the server can be restored. However, there are already the first web hosting providers, especially in shared hosting, who understandably do not allow this. A current example is STRATO, which recently upgraded to Apache 2.4.61
For this reason, the question now arises as to whether this is an issue for TYPO3 core development or whether there is a possibility that Apache will provide another, less far-reaching, solution for the security vulnerability.
Updated by Oliver Hader 4 months ago
I was not able to reproduce the behavior (HTTP 403 errors on URLs containing %3f
, which is e.g. the case for the returnUrl
parameter) with an Apache 2.4.61
local environment, using mod_fcgid
.
Can you please provide details about the web hosting environment?
Are there any custom modifications to the .htaccess
rules?
Updated by Oliver Hader 4 months ago · Edited
For the records...¶
Based on our analysis of a web server environment under Apache 2.4.61, the operation of TYPO3 with regard to CVE-2024-38474 (https://www.cve.org/CVERecord?id=CVE-2024-38474) is not affected. The htaccess configuration provided by TYPO3 by default is not blocked by Apache, and the use of the new UnsafeAllow3F flag also appears unnecessary.
Updated by Oliver Hader 4 months ago
- Category changed from Site Handling, Site Sets & Routing to Backend User Interface
Updated by Eric Harrer 4 months ago · Edited
Thanks for the feedback. Good to hear that it's not a general problem that could potentially affect other web hosting providers.
Unfortunately, I don't currently have STRATO web hosting myself, from which I could provide further insights. I just linked the topic that was discussed in the TYPO3 Community Hub, in the Contao Forum and on Slack and recorded it here to reach the core team.
If this is not a general problem, it will certainly be possible to close this "issue".
Updated by Oliver Hader 4 months ago
Thanks for your feedback!
After clarifying this via Slack directly, it turned out that
- the original error message was copy-pasted from https://community.contao.org/de/showthread.php?87114-Fehler-403-Forbidden-durch-Cookiebar-AH10508-Unsafe-URL-with-3f-URL-rewritten&p=586304&viewfull=1#post586304
- other references stemmed from another forum thread at https://forum.t3academy.de/d/507-strato-create-content-forbidden-error-403-cve-2024-38474-unsafeallow3f/48
Updated by Oliver Hader 4 months ago
Concerning Strato (https://www.strato.de/)¶
We (the TYPO3 Security Team) contacted the Strato Security Team today, asking for a clarification about their procedures (arbitrarily blocking any URL that contains %3f
) and their misleading statements about "using insecure methods in Typo3" - which is of not the case.
We were able to reproduce the behavior on websites that are definitively not build with TYPO3 - the pure existence of %3f
in the request URI was enough to get denied.
→ example https://filmscanner.info/%3f (resolves to 81.169.145.64, w00.rzone.de)
Updated by Oliver Hader 4 months ago
- Status changed from Needs Feedback to Rejected
- Priority changed from Should have to Won't have this time
I'm closing this issue as it is related to an Apache vulnerability and very specific to one particular web hosting provider.
Please feel free to reopen this issue, in case the situation changes. Thanks!
Updated by Franz Koch 4 months ago
since the report was only for v13: Has this also been tested by the security team with v12.4, or only v13? Or is a test with v12 not necessary since nothing changed in the backend logic of v13 in this regard?
And thanks for looking into it, much appreciated.
Updated by Markus Klein 4 months ago
- TYPO3 Version changed from 13 to 6.2
Adjusted this down to 6.2. As I personally verified this for 6.2 and 11.
Updated by Matthias Haack 4 months ago · Edited
- TYPO3 Version changed from 6.2 to 12
Updated by Matthias Haack 4 months ago
- TYPO3 Version changed from 12 to 6.2
There is a discussion in German about this topic here: https://forum.t3academy.de/d/507-strato-create-content-forbidden-error-403-cve-2024-38474-unsafeallow3f/65
Updated by Ulf Treger 4 months ago
To my knowledge Strato silently fixed the problem yesterday. The 404 error is gone.