N°9654 - Reduce surface attack on config file rights during setup#932
Conversation
|
| Filename | Overview |
|---|---|
| datamodels/2.x/combodo-data-feature-removal/src/Controller/DataFeatureRemovalController.php | Moves cleanup bridge authorization to the session token but leaves the token alive and checks the wrong deletion flag. |
| setup/wizard.php | Adds early config permission hardening before setup-token creation but does not handle chmod failure. |
Reviews (1): Last reviewed commit: "N°9654 - Reduce surface attack on config..." | Re-trigger Greptile
| if (!$aParams['bHasDeletionNeeded']) { | ||
| SetupUtils::CreateSetupToken(); | ||
| } |
There was a problem hiding this comment.
This branch checks bHasDeletionNeeded, but the code only sets bDeletionNeeded a few lines above. The missing key is treated as null, so this condition is always true and PHP can emit a warning. When the analysis still has deletion work to do, this still creates a fresh setup token even though the cleanup flow has not completed.
| if (!$aParams['bHasDeletionNeeded']) { | |
| SetupUtils::CreateSetupToken(); | |
| } | |
| if (!$aParams['bDeletionNeeded']) { | |
| SetupUtils::CreateSetupToken(); | |
| } |
…fig-file-rights-during-setup
N°9654 - Reduce surface attack on config file rights during setup