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

    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 ID SNYK-JAVA-ORGKEYCLOAK-7251679
  • published 13 Jun 2024
  • disclosed 21 Feb 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
3.7 low
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    Low
Expand this section

Red Hat

3.7 low