# Keycloak-saml-core:对saml响应验证不当导致keycloak权限提升
## 漏洞概述
Keycloak中的XMLSignatureUtil类在验证SAML签名时存在缺陷,该缺陷基于错误的位置判断签名适用范围,可能导致签名验证被绕过。
## 影响版本
未指定具体版本。
## 细节
Keycloak中的XMLSignatureUtil类在验证SAML签名时,错误地根据签名在XML文档中的位置来确定签名是针对整个文档还是特定断言。这并非通过Signature元素中指定的Reference元素来判断。利用该缺陷,攻击者可以创建特定的响应,使验证过程失效。
## 影响
该漏洞可能导致验证过程被绕过,进而引起权限提升或冒充攻击。
# | POC 描述 | 源链接 | 神龙链接 |
---|---|---|---|
1 | i'm noob with saml and keycloak . J4f | https://github.com/huydoppaz/CVE-2024-8698-POC | POC详情 |
2 | 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. | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml | POC详情 |
标题: CVE-2024-8698 - Red Hat Customer Portal -- 🔗来源链接
标签: vdb-entry x_refsource_REDHAT
标题: keycloak/saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java at main · keycloak/keycloak · GitHub -- 🔗来源链接
标签:
标题: 2311641 – (CVE-2024-8698) CVE-2024-8698 keycloak-saml-core: Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak -- 🔗来源链接
标签: issue-tracking x_refsource_REDHAT
神龙速读标题: RHSA-2024:6878 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6879 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6880 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6882 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6886 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6887 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6888 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6889 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:6890 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:8823 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:8824 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读标题: RHSA-2024:8826 - Security Advisory - Red Hat Customer Portal -- 🔗来源链接
标签: vendor-advisory x_refsource_REDHAT
神龙速读