CVE-2017-12160 Keycloak Oauth Implementation Error
An attacker with a compromised resource can retain indefinite access tokens despite permission revocation, bypassing authorization controls in Keycloak.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-12160?
CVE-2017-12160 is a high-severity authentication bypass vulnerability in Redhat Keycloak, published on 26 Oct 2017. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
It was found that Keycloak oauth would permit an authenticated resource to obtain an access/refresh token pair from the authentication server, permitting indefinite usage in the case of permission revocation. An attacker on an already compromised resource could use this flaw to grant himself continued permissions and possibly conduct further attacks.
Which versions are affected by CVE-2017-12160?
2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-parent Maven | All versions | 3.3.0.Final |
org.keycloak:keycloak-parent Maven | All versions | 3.3.0.Final |
Products include Redhat Keycloak.
How do I fix CVE-2017-12160?
Upgrade org.keycloak:keycloak-parent to 3.3.0.Final or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2017-12160 being exploited?
There is no known exploitation of CVE-2017-12160 in the wild and no public exploit code.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-qc72-gfvw-76h7.