Overly Restrictive Account Lockout Mechanism Affecting org.keycloak:keycloak-services package, versions [,24.0.0)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGKEYCLOAK-7251679
- published 13 Jun 2024
- disclosed 21 Feb 2024
- credit Unknown
Introduced: 21 Feb 2024
CVE-2024-1722 Open this link in a new tabHow to fix?
Upgrade org.keycloak:keycloak-services
to version 24.0.0 or higher.
Overview
org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.
Affected versions of this package are vulnerable to Overly Restrictive Account Lockout Mechanism due to a flaw in the account lockout mechanism. This issue may allow a remote unauthenticated attacker to prevent legitimate users from accessing their accounts by exploiting the account lockout functionality.
Note:
This is only exploitable if the realm is configured to use "User (Self) registration", the user registers with a username in email format, and the attacker discovers a valid email address for an account.
Workaround
This vulnerability can be mitigated by putting limits on the frequency of account registration to restrict how often an attacker could utilize this attack and by restricting new account registration to not allow email addresses in the username field, for example, by not allowing the @
symbol. This cannot prevent attacks against existing users who have registered with an email address.