Miggo Logo

CVE-2020-15096: Context isolation bypass via Promise in Electron

6.8

CVSS Score
3.1

Basic Information

EPSS Score
0.46794%
Published
7/7/2020
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
electronnpm< 6.1.116.1.11
electronnpm>= 7.0.0, < 7.2.47.2.4
electronnpm>= 8.0.0, < 8.2.48.2.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The core vulnerability stems from CreateProxyForAPI creating context bridge proxies in the source (main world) context rather than the destination (isolated Electron) context. The patches fix this by moving proxy creation into the destination context scope. The pre-patch versions of these functions would appear in stack traces when malicious code accesses privileged APIs through the context bridge, as they directly handled the insecure proxy creation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *pps usin* `*ont*xtIsol*tion` *r* *****t**. T*is is * *ont*xt isol*tion *yp*ss, m**nin* t**t *o** runnin* in t** m*in worl* *ont*xt in t** r*n**r*r **n r**** into t** isol*t** *l**tron *ont*xt *n* p*r*orm privil**** **tions. ### Work*rou

Reasoning

T** *or* vuln*r**ility st*ms *rom *r**t*Proxy*or*PI *r**tin* *ont*xt *ri*** proxi*s in t** sour** (m*in worl*) *ont*xt r*t**r t**n t** **stin*tion (isol*t** *l**tron) *ont*xt. T** p*t***s *ix t*is *y movin* proxy *r**tion into t** **stin*tion *ont*xt