77024[TASK] Add HTTP host header injection check to reports module
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Benjamin Franzke +1
-
Verified V +2 Done
- Benni Mack +2
- Benjamin Franzke +1
- core-ci +1 CI
Issues 1
Files 7
- typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php+1 −0
- typo3/sysext/backend/Classes/ServiceProvider.php+1 −1
- typo3/sysext/core/Classes/ServiceProvider.php+8 −0
- typo3/sysext/core/Documentation/Changelog/9.5.x/Feature-91354-IntegrateServerResponseSecurityChecks.rst+5 −0
- typo3/sysext/install/Classes/Controller/ServerResponseCheckController.phpnew+57 −0
- typo3/sysext/install/Classes/SystemEnvironment/ServerResponse/ServerResponseCheck.php+44 −1
- typo3/sysext/install/Configuration/Backend/Routes.php+6 −0
Review log 1620
-
Oliver Hader uploaded patch set 1 12/12/22, 12:41
-
core-ci voted on patch set 1 V +1 12/12/22, 12:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34909
-
Andreas Kienast commented on patch set 1 12/12/22, 14:37
-
Oliver Hader commented on patch set 1 12/12/22, 14:56
AjaxRoutes.php:6ReplyI don't understand the question. The request must be routed through the web server, because that's the aspect that shall be tested. Thus, in any way it must be an HTTP request. -
Torben Hansen commented on patch set 1 V +1 CR +1 12/12/22, 17:44
Looks good to me. I would recommend to additionally rename a label in the system reports section. Current: `Server Response on static files` Suggested: `Server Reponse` This is now misleading, since the new check does not check a static file, but a potential webserver misconfiguration. -
Oliver Hader voted on patch set 1 CR -1 12/12/22, 17:45
-
Oliver Hader uploaded patch set 2
CR +1V +112/12/22, 17:51 -
core-ci voted on patch set 2 V +1 12/12/22, 17:58 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34936
-
Oliver Hader commented on patch set 2 12/12/22, 18:00
AjaxRoutes.php:6ReplyDone -
Torben Hansen voted on patch set 2 V +1 CR +1 12/12/22, 18:22
-
Nikita Hovratov updated the commit message in patch set 3
CR +1V +112/12/22, 18:26 -
core-ci voted on patch set 3 V +1 12/12/22, 18:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34939
-
Benni Mack voted on patch set 3 V +1 CR +1 12/12/22, 20:26
-
Benjamin Franzke commented on patch set 3 V -1 12/12/22, 21:46
Leads to Too few arguments to function TYPO3\CMS\Backend\Routing\Router::__construct(), 0 passed in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2993 and exactly 1 expected in Environment Status, because Backend Router is currenlty not instantiatable in installtool context since https://review.typo3.org/c/Packages/TYPO3.CMS/+/76865 -
Benjamin Franzke uploaded patch set 4
CR +1V +112/12/22, 21:55 -
Benjamin Franzke commented on patch set 4 12/12/22, 21:55
Reply
Fixed by defining the missing RequestContextFactory service (already used by UriBuilder in installtool mode) and adding it to the Router-factory-fallback used in configureBackendRouter. -
core-ci voted on patch set 4 V +1 12/12/22, 22:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34960
-
Benjamin Franzke voted on patch set 4 V +1 CR +1 12/12/22, 22:33
-
Benni Mack voted on patch set 4 V +2 CR +2 12/13/22, 09:12
-
Benni Mack merged patch set 5 12/13/22, 09:12
AjaxRoutes.php:6