CVE-2024-8698
Keycloak SAML Signature Validation Denial of Authentication
Description
A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks.
INFO
Published Date :
Sept. 19, 2024, 4:15 p.m.
Last Modified :
Dec. 12, 2024, 8:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.3
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-8698 has a 2 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2024-8698
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-8698
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
i'm noob with saml and keycloak . J4f
Java
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-8698
vulnerability anywhere in the article.
- Cybersecurity News
CVE-2024-8698: Keycloak Vulnerability Puts SAML Authentication at Risk
Image: KeycloakIn a concerning development for organizations relying on Keycloak for secure identity and access management, a high-severity vulnerability has been discovered in its SAML signature vali ... Read more
The following table lists the changes that have been made to the
CVE-2024-8698
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Dec. 12, 2024
Action Type Old Value New Value Removed Reference https://github.com/keycloak/keycloak/blob/main/saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java#L415 -
CVE Modified by [email protected]
Nov. 05, 2024
Action Type Old Value New Value Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:8823 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:8824 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:8826 [No types assigned] -
CVE Modified by [email protected]
Sep. 19, 2024
Action Type Old Value New Value Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6878 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6879 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6880 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6882 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6886 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6887 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6888 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6889 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6890 [No types assigned] -
CVE Received by [email protected]
Sep. 19, 2024
Action Type Old Value New Value Added Description A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks. Added Reference Red Hat, Inc. https://access.redhat.com/security/cve/CVE-2024-8698 [No types assigned] Added Reference Red Hat, Inc. https://bugzilla.redhat.com/show_bug.cgi?id=2311641 [No types assigned] Added Reference Red Hat, Inc. https://github.com/keycloak/keycloak/blob/main/saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java#L415 [No types assigned] Added CWE Red Hat, Inc. CWE-347 Added CVSS V3.1 Red Hat, Inc. AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-8698
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-8698
weaknesses.