Util: Use constant-time comparison in various password checkers

reported by: bottomlineit.co.za
This commit is contained in:
zzz committed 2026-05-08 15:02:22 -04:00
1 parent bbe18c9e9f
commit a4afe588f3
5 files changed
+68 -7

No files matched your search

@@ -67,7 +67,7 @@ public class ConsolePasswordManager extends RouterPasswordManager {
String hex = _context.getProperty(pfx + PROP_MD5);
if (hex == null)
return false;
return hex.equals(md5Hex(subrealm, user, pw));
return DataHelper.eqCT(md5Hex(subrealm, user, pw), hex);
}
/**