Keycloak < 21.1.2 - Cross-Site Scripting via AssertionConsumerServiceURL or redirect_uri
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2022-4361. PoCs published by faccimatteo, shoucheng3.
AI-analyzed exploit summary This PoC exploits CVE-2022-4361, an open redirect vulnerability in Keycloak that can lead to reflected XSS. It crafts a malicious authentication URL with a JavaScript payload in the 'redirect_uri' parameter and sets 'response_mode' to 'form_post' to trigger the vulnerability.
Description
Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.
Exploits (2)
This PoC exploits CVE-2022-4361, an open redirect vulnerability in Keycloak that can lead to reflected XSS. It crafts a malicious authentication URL with a JavaScript payload in the 'redirect_uri' parameter and sets 'response_mode' to 'form_post' to trigger the vulnerability.
This repository contains a proof-of-concept exploit for CVE-2022-4361, targeting Keycloak. The exploit involves manipulating FIPS mode settings and includes scripts for testing and validation.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H