Authentication Bypass by Capture-replay in Keycloak - CVE-2020-14302

 

Authentication Bypass by Capture-replay in Keycloak - CVE-2020-14302

Published: December 15, 2020 / Updated: December 21, 2020


Vulnerability identifier: #VU49113
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-14302
CWE-ID: CWE-294
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass authentication process.

The vulnerability exists due to the way Keycloak hadles authentication via external identity providers. After successful authentication the user is redirected to a Keycloak endpoint that accepts multiple invocations with the use of the same "state" parameter. A remote attacker can perform a replay attack and bypass authentication process.


Affected software

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

How to mitigate CVE-2020-14302

Install updates from vendor's website.

Red Hat Single Sign-On - update to 7.4.6
rh-sso7-keycloak (Red Hat package) - addressed in versions 9.0.12-1.redhat_00001.1.el6sso, 9.0.12-1.redhat_00001.1.el7sso, 9.0.12-1.redhat_00001.1.el8sso

External References

Related Security Bulletins