Miggo Logo

CVE-2020-10776:
Cross-site Scripting in keycloak

4.8

CVSS Score

Basic Information

EPSS Score
-
Published
2/9/2022
Updated
4/22/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.keycloak:keycloak-server-spi-privatemaven< 12.0.012.0.0
org.keycloak:keycloak-servicesmaven< 12.0.012.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper validation of redirect_uri schemes. The commit shows removal of ClientValidationUtil and introduction of enhanced validation in ValidationUtil, particularly for OIDC clients. The deleted ClientValidationUtil.validate was clearly part of the flawed validation chain, while the client registration endpoint (OIDCClientRegistrationProvider) would have been the entry point using this validation. The medium confidence for the second function comes from indirect evidence in the commit's OIDCContext introduction rather than explicit vulnerable code shown.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* *l*w w*s *oun* in K*y*lo*k ***or* v*rsion **.*.*, w**r* it is possi*l* to *** uns*** s***m*s *or t** r**ir**t_uri p*r*m*t*r. T*is *l*w *llows *n *tt**k*r to p*r*orm * *ross-sit* s*riptin* *tt**k.

Reasoning

T** vuln*r**ility st*ms *rom improp*r v*li**tion o* r**ir**t_uri s***m*s. T** *ommit s*ows r*mov*l o* *li*ntV*li**tionUtil *n* intro*u*tion o* *n**n*** v*li**tion in V*li**tionUtil, p*rti*ul*rly *or OI** *li*nts. T** **l*t** *li*ntV*li**tionUtil.v*li