Skip to content

Commit baa8089

Browse files
committed
[SECURITY] Avoid logging install tool password on hashing issue
This change avoids logging the submitted plain-text install tool password in case the server-side hash was invalid. Resolves: #105685 Releases: main, 13.4 Change-Id: I0b83e672d612a14442d5023361a96bd863947492 Security-Bulletin: TYPO3-CORE-SA-2025-001 Security-References: CVE-2024-55891 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87742 Reviewed-by: Oliver Hader <oliver.hader@typo3.org> Tested-by: Oliver Hader <oliver.hader@typo3.org>
1 parent cf8a6bc commit baa8089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Authentication/AuthenticationService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public function loginWithPassword($password, ServerRequestInterface $request, Se
7070
$validPassword = $hashInstance->checkPassword($password, $installToolPassword);
7171
} catch (InvalidPasswordHashException $e) {
7272
$logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);
73-
$logger->warning(
73+
$logger->error(
7474
'Invalid install tool password hash specified in "BE/installToolPassword" configuration.',
75-
['exception' => $e]
75+
['exceptionMessage' => $e->getMessage()]
7676
);
7777
}
7878
}

0 commit comments

Comments
 (0)