CVE-2020-10770 Keycloak vulnerable to Server-Side Request Forgery
Attackers can force Keycloak to request unverified URLs via the request_uri parameter, enabling Server-Side Request Forgery attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-10770?
CVE-2020-10770 is a medium-severity server-side request forgery vulnerability in Redhat Keycloak, published on 15 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in Keycloak before 13.0.0, where it is possible to force the server to call out an unverified URL using the OIDC parameter request_uri. This flaw allows an attacker to use this parameter to execute a Server-side request forgery (SSRF) attack.
Weakness: CWE-918
Which versions are affected by CVE-2020-10770?
2 open source packages ship an affected version, including org.keycloak:keycloak-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-core Maven | All versions | 13.0.0 |
org.keycloak:keycloak-core Maven | All versions | 13.0.0 |
Linux distribution packages (6)
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el6 | All versions | 0:9.0.11-1.redhat_00001.1.el6sso |
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el6 | All versions | 0:9.0.11-1.redhat_00001.1.el6sso |
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el7 | All versions | 0:9.0.11-1.redhat_00001.1.el7sso |
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el7 | All versions | 0:9.0.11-1.redhat_00001.1.el7sso |
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el8 | All versions | 0:9.0.11-1.redhat_00001.1.el8sso |
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el8 | All versions | 0:9.0.11-1.redhat_00001.1.el8sso |
Products include Redhat Keycloak.
How do I fix CVE-2020-10770?
Upgrade org.keycloak:keycloak-core to 13.0.0 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2020-10770 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-10770 exists.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
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-jh7q-5mwf-qvhw, RHSA-2021:0318, RHSA-2021:0319, RHSA-2021:0320.