ghsa-c25h-c27q-5qpv
Vulnerability from github
Published
2024-06-21 15:52
Modified
2024-07-01 14:39
Summary
Keycloak leaks configured LDAP bind credentials through the Keycloak admin console
Details

Impact

The LDAP testing endpoint allows to change the Connection URL independently of and without having to re-enter the currently configured LDAP bind credentials. An attacker with admin access (permission manage-realm) can change the LDAP host URL ("Connection URL") to a machine they control. The Keycloak server will connect to the attacker's host and try to authenticate with the configured credentials, thus leaking them to the attacker. As a consequence, an attacker who has compromised the admin console/compromised a user with sufficient privileges can leak domain credentials and can now attack the domain.

Acknowledgements

Special thanks to Simon Wessling for reporting this issue and helping us improve our project

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "Maven",
            name: "org.keycloak:keycloak-ldap-federation",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "25.0.0",
                  },
                  {
                     fixed: "25.0.1",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
         versions: [
            "25.0.0",
         ],
      },
      {
         database_specific: {
            last_known_affected_version_range: "<= 22.0.11",
         },
         package: {
            ecosystem: "Maven",
            name: "org.keycloak:keycloak-ldap-federation",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "22.0.12",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         database_specific: {
            last_known_affected_version_range: "<= 24.0.5",
         },
         package: {
            ecosystem: "Maven",
            name: "org.keycloak:keycloak-ldap-federation",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "23.0.0",
                  },
                  {
                     fixed: "24.0.6",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2024-5967",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-276",
      ],
      github_reviewed: true,
      github_reviewed_at: "2024-06-21T15:52:38Z",
      nvd_published_at: null,
      severity: "LOW",
   },
   details: "### Impact\n\nThe LDAP testing endpoint allows to change the Connection URL independently of and without having to re-enter the currently configured LDAP bind credentials. An attacker with admin access (permission manage-realm) can change the LDAP host URL (\"Connection URL\") to a machine they control. The Keycloak server will connect to the attacker's host and try to authenticate with the configured credentials, thus leaking them to the attacker.\nAs a consequence, an attacker who has compromised the admin console/compromised a user with sufficient privileges can leak domain credentials and can now attack the domain.\n\n### Acknowledgements\n\nSpecial thanks to Simon Wessling for reporting this issue and helping us improve our project",
   id: "GHSA-c25h-c27q-5qpv",
   modified: "2024-07-01T14:39:53Z",
   published: "2024-06-21T15:52:38Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/keycloak/keycloak/security/advisories/GHSA-c25h-c27q-5qpv",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-5967",
      },
      {
         type: "WEB",
         url: "https://github.com/keycloak/keycloak/issues/30434",
      },
      {
         type: "WEB",
         url: "https://github.com/keycloak/keycloak/commit/0d0530046b9cb4b0d74d2fdefc9bd04f1d20cac0",
      },
      {
         type: "WEB",
         url: "https://github.com/keycloak/keycloak/commit/1f56a9e48bf96c3bcb18dfc6cd93e3dd16f281f1",
      },
      {
         type: "WEB",
         url: "https://github.com/keycloak/keycloak/commit/bde8568d4174a7072f7c7bb507d2c7d05824b1a6",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/security/cve/CVE-2024-5967",
      },
      {
         type: "WEB",
         url: "https://bugzilla.redhat.com/show_bug.cgi?id=2292200",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/keycloak/keycloak",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N",
         type: "CVSS_V3",
      },
   ],
   summary: "Keycloak leaks configured LDAP bind credentials through the Keycloak admin console",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.