MISP's brute-force lockout mechanism for login and one-time-password (OTP) authentication is susceptible to bypass through Unicode case-folding inconsistencies and input handling flaws.
- Email addresses containing non-ASCII capital letters are not counted toward the lockout threshold, permitting unlimited authentication attempts against a specific account.
- Database collation folding (accent and width variants) allows an attacker to reach a valid account using a folded alias of the email address without the attempt being recorded in the lockout counter.
- A password containing a NUL byte produces a distinct server error for known accounts while unknown accounts receive a different response, enabling username enumeration.
An unauthenticated remote attacker can exploit these issues to perform unlimited password brute-force attacks against any account and to enumerate valid user accounts.
Affected: MISP versions prior to 2.5.52
The lockout key is now canonicalized using a single multibyte-aware case-folding function shared by both the storage and lookup paths, ensuring all case variants of an address are counted under one key. After a user is located via the database, the submitted address is re-canonicalized and compared to the stored address; if they differ (indicating a collation-fold match), authentication is forced to fail as an unknown account. NUL bytes in the password field are stripped before hashing so that known and unknown accounts produce identical responses.