MEDIUM 6.0 Maven

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

GHSA-8rmm-gm28-pj8q · CVE-2023-6717

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes