81425[BUGFIX] Adjust config file path in Install Tool password hint
Commit message
Review
-
Code review CR +2 Done
- Nikita Hovratov +2
- Garvin Hicking +1
- Markus Klein +1
- Jan Greth +1
-
Verified V +2 Done
- Nikita Hovratov +2
- Garvin Hicking +1
- Jan Greth +1
- core-ci +1 CI
Issues 1
Files 3
Review log 3441
Show 1316 earlier messages
-
Jan Greth uploaded patch set 1 10/13/23, 15:27
-
core-ci voted on patch set 1 V +1 10/13/23, 15:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47744
-
Nikita Hovratov commented on patch set 1 10/13/23, 15:37
In classic mode this is still typo3conf/system. So both should be named. -
Jan Greth commented on patch set 1 10/13/23, 16:31
Reply
Mh... In `\TYPO3\CMS\Install\Controller\LoginController::showLoginAction()` we could pass something like ``` $view->assignMultiple([ ... 'configFile' => Environment::getConfigPath() . '/system/settings.php', ]); ``` to the template - but that would result in the absolute path of settings.php. What's your opinion? -
Nikita Hovratov commented on patch set 1 10/13/23, 16:34
Reply
That would be great! -
Jan Greth uploaded patch set 2
V +110/13/23, 18:23 -
core-ci voted on patch set 2 V +1 10/13/23, 18:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47748
-
Jan Greth commented on patch set 2 10/13/23, 18:41
Reply
Done -
Andreas Kienast commented on patch set 2 10/16/23, 07:35
LoginController.php:63We need another slash here, otherwise the path is rendered as `/var/www/html/public/typo3confsystem/settings.php`. Also, I'm not sure whether we should expose the full path. -
Garvin Hicking commented on patch set 2 10/16/23, 16:36
LoginController.php:63ReplyI thought about that the same and it felt "dangerous". Then again, the install tool will only reveal that if it's unlocked. So an attacker would already need to have access to the filesystem (or use an exploit to put it there), in which case he'd already have means about introspecting the filesystem....? I tend to believe the upsides of better locating the files weigh harder then this "information disclosure" - but just $0.0.2 -
Jan Greth uploaded patch set 3
V +110/17/23, 07:32 -
Jan Greth commented on patch set 3 V +1 CR +1 10/17/23, 07:34
LoginController.php:63ReplyThat's a good thought and makes totally sense. -
core-ci voted on patch set 3 V +1 10/17/23, 07:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47847
-
Garvin Hicking voted on patch set 3 V +1 CR +1 10/17/23, 09:33
-
Benjamin Franzke commented on patch set 3 CR -1 10/17/23, 11:17
LoginController.php:63ReplyI was inclined to agree, but the install-tool is unlocked whenever the administrator has created the ENBALE_INSTALL_TOOL file. That means – during that period of time – this would be an information disclosure for a 3rd party that visits /typo3/install.php – without any authentication. I'm leaving CR-1 for that reason for now. -
Garvin Hicking commented on patch set 3 10/17/23, 11:27
LoginController.php:63ReplyTrue, that's a possible "race condition", good note. Then the patch would need to strip the absolute path prefix? So that the output would just be one of: - typo3conf/system/settings.php - config/system/settings.php IMO it would be important for uses to realize that the current static filename may not be in sync with the actual installation. An alternative would be to statically print: `(typo3conf|config)/system/settings.php` then people could understand that there are two (or even more, I don't know?) locations.
-
Garvin Hicking voted on patch set 3 CR 0 10/17/23, 11:27
-
Benjamin Franzke commented on patch set 3 10/17/23, 11:43
LoginController.php:63ReplyMy suggestion is: Output different *static* info strings based on `Environment::isComposeMode()`. -
Jan Greth uploaded patch set 4
CR +1V +110/17/23, 12:22 -
Jan Greth commented on patch set 4 10/17/23, 12:25
I changed my code after Benjamin Franzke's hint using `isComposerMode()`. This way we can output the correct path without exposing too much. -
Jan Greth commented on patch set 4 10/17/23, 12:25
LoginController.php:63ReplyDone -
core-ci voted on patch set 4 V +1 10/17/23, 12:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47865
-
Garvin Hicking voted on patch set 4 V +1 CR +1 10/17/23, 14:30
-
Nikita Hovratov voted on patch set 4 V +1 CR +1 10/17/23, 15:06
-
Markus Klein updated the commit message in patch set 5
CR +1V +110/17/23, 16:08 -
Markus Klein voted on patch set 5 CR +1 10/17/23, 16:08
-
Oliver Hader commented on patch set 5 10/17/23, 16:09
LoginController.php:64What about using `ConfigurationManager::getSystemConfigurationFileLocation(true)` directly` -
core-ci voted on patch set 5 V +1 10/17/23, 16:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47880
-
Jan Greth uploaded patch set 6
CR +1V +110/18/23, 07:31 -
Jan Greth commented on patch set 6 V +1 CR +1 10/18/23, 07:35
LoginController.php:64ReplyThat's indeed a good solution. Didn't know that. -
core-ci voted on patch set 6 V +1 10/18/23, 07:38 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47892
-
Garvin Hicking voted on patch set 6 V +1 CR +1 10/18/23, 07:48
-
Nikita Hovratov uploaded patch set 7
CR +1V +110/18/23, 07:54 -
Nikita Hovratov voted on patch set 7 V +1 CR +1 10/18/23, 07:55
-
core-ci voted on patch set 7 V +1 10/18/23, 08:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/47893
-
Markus Klein voted on patch set 7 CR +1 10/18/23, 08:54
-
Garvin Hicking voted on patch set 7 V +1 CR +1 10/18/23, 11:02
-
Jan Greth voted on patch set 7 CR +1 10/18/23, 11:57
-
Jan Greth voted on patch set 7 V +1 10/18/23, 11:57
-
Nikita Hovratov voted on patch set 7 V +2 CR +2 10/18/23, 12:14
-
Nikita Hovratov merged patch set 8 10/18/23, 12:14