Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:43198
HistorySep 08, 2023 - 11:30 a.m.

Improper Check For Unusual Or Exceptional Conditions

2023-09-0811:30:47
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
6
electron
vulnerability
contextbridge
error handling
serialization
context isolation
privileged actions
renderer
api

CVSS3

8.5

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.001

Percentile

38.7%

Electron is vulnerable to Improper Check For Unusual Or Exceptional Conditions. The vulnerability is caused by not implementing error handling correctly in case of an API exposed to the main world via contextBridge returning an object or array that contains a JS object which cannot be serialized (e.g: a canvas rendering context) or an API returning a value that throws a user-generated exception while being sent over the bridge (e.g: a dynamic getter property on an object). This leads to a context isolation bypass meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions.

CVSS3

8.5

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.001

Percentile

38.7%