Skip to content

XSS via assertion consumer service URL in SAML POST-binding flow

High
abstractj published GHSA-8rmm-gm28-pj8q Apr 17, 2024

Package

maven org.keycloak.validation (Maven)

Affected versions

< 22.0.10, < 24.0.3

Patched versions

22.0.10, 24.0.3

Description

Keycloak allows arbitrary URLs as SAML Assertion Consumer Service POST Binding URL (ACS), including JavaScript URIs (javascript:).

Allowing JavaScript URIs in combination with HTML forms leads to JavaScript evaluation in the context of the embedding origin on form submission.

Acknowledgements:

Special thanks to Lauritz Holtmann for reporting this issue and helping us improve our project.

Severity

High

CVE ID

CVE-2023-6717