keycloak/keycloak · Security

Keycloak Cross-site Scripting (XSS) via assertion consumer service URL in SAML POST-binding flow

GHSA ID
GHSA-8rmm-gm28-pj8q
CVE ID
CVE-2023-6717
Severity
medium
Published
Updated
CVSS
6 · CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L
CVSS v3
6 · CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L

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.

CWEs

References