CVE-2024-8698
HIGH NUCLEIKeycloak SAML Core < 22.0.13 - Improper Verification of Cryptographic Signature in XMLSignatureUtil
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2024-8698. PoCs published by huydoppaz. A Nuclei detection template is also available.
AI-analyzed exploit summary This PoC demonstrates a SAML signature wrapping attack (CVE-2024-8698) by manipulating the XML structure of a SAML response to bypass signature validation. It clones the assertion, modifies the NameID to '[email protected]', and repositions the signature element to exploit improper validation logic.
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.
Exploits (1)
This PoC demonstrates a SAML signature wrapping attack (CVE-2024-8698) by manipulating the XML structure of a SAML response to bypass signature validation. It clones the assertion, modifies the NameID to '[email protected]', and repositions the signature element to exploit improper validation logic.
Nuclei Templates (1)
http.favicon.hash:"-1105083093"
icon_hash=-1105083093
References (14)
Scores
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L