Miggo Logo

CVE-2020-11611: Open Redirect in xdLocalStorage

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.36341%
Published
12/9/2021
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
xdLocalStoragenpm<= 2.0.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The core vulnerability stems from two key functions: 1) buildMessage() in the client library uses '' targetOrigin when sending messages to the iframe, allowing message interception if the iframe is compromised. 2) postData() in the iframe API similarly uses '' when responding, exposing storage data to any parent domain. Both were explicitly referenced in vulnerability analyses and code examples, with the wildcard targetOrigin violating postMessage security best practices by failing to restrict message recipients.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in x*Lo**lStor*** t*rou** *.*.*. T** *uil*M*ss***() *un*tion in x*Lo**lStor***.js sp**i*i*s t** wil***r* (*) *s t** t*r**tOri*in w**n **llin* t** postM*ss***() *un*tion on t** i*r*m* o*j**t. T**r**or* *ny *om*in t**t is *urr*n

Reasoning

T** *or* vuln*r**ility st*ms *rom two k*y *un*tions: *) *uil*M*ss***() in t** *li*nt li*r*ry us*s '*' t*r**tOri*in w**n s*n*in* m*ss***s to t** i*r*m*, *llowin* m*ss*** int*r**ption i* t** i*r*m* is *ompromis**. *) post**t*() in t** i*r*m* *PI simil*