Open redirect in keycloak-nodejs-connect - CVE-2022-2237

 

Open redirect in keycloak-nodejs-connect - CVE-2022-2237

Published: March 2, 2023


Vulnerability identifier: #VU72727
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-2022-2237
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 Node.js adapter when forwarding requests to Keycloak using checkSSO with query param 'prompt=none'. 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-nodejs-connect
Red Hat Single Sign-On

How to mitigate CVE-2022-2237

Install updates from vendor's website.

keycloak-nodejs-connect - update to 21.0.1
Red Hat Single Sign-On - update to 7.6.2

External References

Related Security Bulletins