mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-06-04 15:11:35 +00:00
Util: Use constant-time comparison in various password checkers
reported by: bottomlineit.co.za
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user