Org.keycloak:keycloak-model-jpa: case-variant realm urls bypass proxy restrictions
Red Hat Build of Keycloak · Red Hat Single Sign-On 7
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Red Hat Build of Keycloak | — | No fix yet |
| Red Hat Red Hat Build of Keycloak | — | No fix yet |
| Red Hat Red Hat Single Sign-On 7 | — | No fix yet |
| Red Hat Red Hat Single Sign-On 7 | — | No fix yet |
Original description
A flaw was found in Keycloak. When configured with a database that uses case-insensitive collation, Keycloak resolves realm URLs regardless of letter casing. A remote attacker can exploit this behavior by sending requests with alternate letter casing to bypass upstream reverse proxy access controls that rely on case-sensitive path matching. This issue can expose restricted authentication endpoints intended only for internal access, though Keycloak's internal authentication mechanisms remain intact.