Miggo Logo

CVE-2021-31404: Timing side channel vulnerability in UIDL request handler in Vaadin 10, 11-14, and 15-18

4

CVSS Score
3.1

Basic Information

EPSS Score
0.13888%
Published
4/19/2021
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.vaadin:flow-servermaven>= 1.0.0, < 1.0.141.0.14
com.vaadin:flow-servermaven>= 1.1.0, < 2.4.72.4.7
com.vaadin:flow-servermaven>= 3.0.0, < 5.0.35.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in security token comparisons using String.equals() which leaks timing information. The patches explicitly modify three comparison points across different handlers (CSRF, push ID, and upload security) to use constant-time MessageDigest.isEqual. The original unpatched versions of these functions would appear in runtime profiles during token validation when processing malicious requests. Each identified function directly handles security-critical comparisons and shows clear evidence of insecure pre-patch implementations in the provided diffs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Non-*onst*nt-tim* *omp*rison o* *SR* tok*ns in UI*L r*qu*st **n*l*r in `*om.v***in:*low-s*rv*r` v*rsions *.*.* t*rou** *.*.** (V***in **.*.* t*rou** **.*.**), *.*.* prior to *.*.* (V***in ** t*rou** **), *.*.* t*rou** *.*.* (V***in **.*.* t*rou** **.

Reasoning

T** vuln*r**ility m*ni**sts in s**urity tok*n *omp*risons usin* `Strin*.*qu*ls()` w*i** l**ks timin* in*orm*tion. T** p*t***s *xpli*itly mo*i*y t*r** *omp*rison points **ross *i***r*nt **n*l*rs (*SR*, pus* I*, *n* uplo** s**urity) to us* *onst*nt-tim