#91493Add documentary and improve warnings for "Server Response on static files" check
Description
Hey folks,
when TYPO3 is not capable of performing a HTTP-Request on itself – e.g. when there’s a basic-auth-protection on the site – the “Server Response on static files”-check in the Reports-module shows a somewhat generic warning:
Warnings (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.html (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.wrong (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.html.wrong (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.1.svg.wrong (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.2.svg.wrong (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.php.wrong (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.html.txt (401): http://mydomain.tld/typo3temp/assets/714b0522.tmp/376bc44b.php.txt
One might think that the configuration is unsafe, but in this particular case it was not possible for TYPO3 to perform the checks at all.
I think it would be great if TYPO3 would tell the user, if the check lead to an unexpected result (e.g. wrong content-type) or if it could not be performed at all (where a 401 is the first thing that comes to my mind).
Maybe it would also be useful to do a check on the HTTP-Requests in general, since other parts of TYPO3 also make use of it? (404 handling for example, if you select “Show Content from Page”)
Everything connected to HTTP-Requests on itself will fail you create a basic-auth-protection without whitelisting the TYPO3-installation itself (e.g. by whitelisting the server-ip).
tested with 9.5.18, but i 10.4.2+ should also be affected.
Greetings,
Hannes
Reviews 3
Related issues 1
History 512
-
Chris topher changed due date start date Follows #91354 <span data-processor="relativetime" data-value="2020-06-07T19:15:40+00:00" > 06/07/20, 19:15 </span>
-
S P commented and changed tracker
FeatureBug subjectImprove warnings for "Server Response on static files"-checkAdd documentary and improve warnings for "Server Response on static files" check category TYPO3 Version 9 <span data-processor="relativetime" data-value="2020-07-06T09:26:28+00:00" > 07/06/20, 09:26 </span> -
Loon Buster commented <span data-processor="relativetime" data-value="2021-04-13T11:18:20+00:00" > 04/13/21, 11:18 </span>
a feature that protects all developers from the fact that some developers are too incompetent to keep their environment clean is not an enrichment. And again the head-dev’s of t3 manage to transfer their own illogic to everyone.
NO conscientious developer leaves such files lying around!
4d254f98.php.wrong
4d254f98.php.txt“missing Content-Security-Policy for this location” .. bonkers.
i’m sick of this.
best
.loon -
Christian Ludwig commented and changed tracker
BugFeature TYPO3 Version9<span data-processor="relativetime" data-value="2023-07-25T17:22:36+00:00" > 07/25/23, 17:22 </span>I would appreciate a documentation or more informative messages as well because not all of them are self-explanatory.
@loon
The test for files with two file extensions (like
4d254f98.php.txt) are there to check if the server is configured (by the provider) in a way that these files get executed as PHP. And these files could possibly been uploaded by a TYPO3 user with the right to upload txt files who wants to hack your system.
This already helped me to find out that a well known provider configured his Nginx to forward allLocation ~ \.php(no$at the end) requests to PHP-FPM. -
Gerrit Code Review pushed patch set 1 for main to change 93166 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-12T20:42:07+00:00" > 03/12/26, 20:42 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93166 <span data-processor="relativetime" data-value="2026-04-22T06:43:32+00:00" > 04/22/26, 06:43 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93166 <span data-processor="relativetime" data-value="2026-07-05T18:57:44+00:00" > 07/05/26, 18:57 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 93166 <span data-processor="relativetime" data-value="2026-08-27T16:11:20+00:00" > 08/27/26, 16:11 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 93166 <span data-processor="relativetime" data-value="2026-09-01T08:25:03+00:00" > 09/01/26, 08:25 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95522 <span data-processor="relativetime" data-value="2026-09-01T14:24:59+00:00" > 09/01/26, 14:24 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 95523 <span data-processor="relativetime" data-value="2026-09-01T14:25:08+00:00" > 09/01/26, 14:25 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-01T14:40:09+00:00" > 09/01/26, 14:40 </span>Applied in changeset commit:93cde10c2dfef39186652a4862d0dbafd98cea6b.
Voting for this, too.
Just stumbled over this on a staging environment. Cost me lots of time for debugging what these “warnings” mean. Just to find out that this is because the staging is behind Basic Auth.
But also in general: the check should include a link to the docs (sadly the docs itself do not exist). There’s only this (which is not helpful):
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Feature-91354-IntegrateServerResponseSecurityChecks.html
The link in there goes to a v10 doc! The v9 doc does not have this section at all. When I’m starting a fresh setup with 9.5.18, I won’t look in the changelog, but in the v9 docs of course. From this POV this is an undocumented feature.
I changed this to bug, because the missing v9 doc and/or missleading warnings are a bug, of course.