Merge pull request #7840 from nextcloud/hash-equal

aio-interface: Use timeing-safe password comparison
This commit is contained in:
Simon L.
2026-04-02 10:26:00 +02:00
committed by GitHub

View File

@@ -657,7 +657,7 @@ class ConfigurationManager
throw new InvalidSettingConfigurationException("Please enter your current password.");
}
if ($currentPassword !== $this->password) {
if (!hash_equals($this->password, $currentPassword)) {
throw new InvalidSettingConfigurationException("The entered current password is not correct.");
}