Open redirect in Keycloak - CVE-2023-6291

 

Open redirect in Keycloak - CVE-2023-6291

Published: December 20, 2023 / Updated: December 21, 2023


Vulnerability identifier: #VU84614
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-6291
CWE-ID: CWE-601
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to redirect victims to arbitrary URL.

The vulnerability exists due to improper sanitization of user-supplied data in the verifyRedirectUri method. A remote attacker can create a link that leads to a trusted website, however, when clicked, redirects the victim to arbitrary domain.

Successful exploitation of this vulnerability may allow a remote attacker to perform a phishing attack and steal potentially sensitive information.


Affected software

Keycloak
Red Hat Single Sign-On
rh-sso7-keycloak (Red Hat package)

How to mitigate CVE-2023-6291

Install updates from vendor's website.

Keycloak - update to 23.0.2
Red Hat Single Sign-On - addressed in versions 7.6.6, 7.6.7
rh-sso7-keycloak (Red Hat package) - addressed in versions 18.0.11-2.redhat_00003.1.el7sso, 18.0.11-2.redhat_00003.1.el8sso, 18.0.11-2.redhat_00003.1.el9sso, 18.0.12-1.redhat_00001.1.el7sso, 18.0.12-1.redhat_00001.1.el8sso, 18.0.12-1.redhat_00001.1.el9sso

External References

Related Security Bulletins