Overly Restrictive Account Lockout Mechanism Affecting org.keycloak:keycloak-services package, versions [,24.0.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

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 IDSNYK-JAVA-ORGKEYCLOAK-7251679
  • published13 Jun 2024
  • disclosed21 Feb 2024
  • creditUnknown

Introduced: 21 Feb 2024

CVE-2024-1722  (opens in a new tab)
CWE-645  (opens in a new tab)

How 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.

CVSS Scores

version 3.1