#100040Properly validate start module
Description
BackendController::getStartupModule() checks for the ‘startModule’ incorrectly. The code is:
} elseif ($this->moduleLoader->checkMod($beUser->uc['startModule'] ?? '') !== 'notFound') {
$startModule = $beUser->uc['startModule'];
Method checkMod can return string, bool or array. Only array means that that the module exists and available. String and bool (which can only be false) mean that the module should not be used. Therefore the check should be like:
} elseif (is_array($this->moduleLoader->checkMod($beUser->uc['startModule'] ?? ''))) {
$startModule = $beUser->uc['startModule'];