cbcvebase.
CVE-2024-8883
published 2024-09-19

CVE-2024-8883: A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to…

PriorityP278medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
1.96%
78.1th percentile
A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.

Affected

9 ranges
VendorProductVersion rangeFixed in
redhatopenshift_container_platform
redhatopenshift_container_platform
redhatopenshift_container_platform_for_ibm_z
redhatopenshift_container_platform_for_ibm_z
redhatopenshift_container_platform_for_linuxone
redhatopenshift_container_platform_for_linuxone
redhatopenshift_container_platform_for_power
redhatopenshift_container_platform_for_power
redhatsingle_sign-on

Detection & IOCsextracted from sources · hover to see the quote

url/realms/master/protocol/openid-connect/auth?client_id={{client_id}}&redirect_uri={{redir_host}}:80@{{redirect_uri}}
commandhttp://localhost
regexLocation:\s+https?://(localhost|127\.0\.0\.1|\[::\]):\d*@oast\.me\?
  • Look for HTTP 302 responses from Keycloak's OpenID Connect auth endpoint where the Location header contains a userinfo-style redirect (host:port@external-domain), indicating open redirect exploitation via localhost/127.0.0.1 bypass.
  • Monitor Keycloak auth requests where redirect_uri contains the pattern <localhost_or_127.0.0.1>:PORT@<external-host>, which abuses URL userinfo parsing to bypass redirect URI validation.
  • Shodan query 'title:"keycloak"' can be used to identify exposed Keycloak instances potentially vulnerable to this open redirect.
  • The attack uses a clusterbomb payload across multiple client_id values (security-admin-console, master-realm, broker, admin-cli, account, account-console) and multiple localhost variants including IPv6 [::].
  • ·Vulnerability is only exploitable when a Keycloak client has 'Valid Redirect URI' configured as http://localhost or http://127.0.0.1 — misconfiguration is a prerequisite.
  • ·The IPv6 loopback variant http://[::] is also a valid trigger condition for this bypass, in addition to IPv4 localhost addresses.

CVSS provenance

nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vulncheck6.1MEDIUM
vendor_redhat6.1MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.