Skip to content

Cleartext Transmission of Sensitive Information

Description

The application can load content over HTTP, making it vulnerable to Man-in-the-Middle attacks.

Examples

Insecure Code

javascript
new BrowserWindow({webPreferences: {allowRunningInsecureContent: true}})

Secure Code

javascript
new BrowserWindow({webPreferences: {allowRunningInsecureContent: false}})

Remediation

Set the 'allowRunningInsecureContent' property to 'false' in the BrowserWindow web preferences to prevent loading content over HTTP.

Rule Details

FieldValue
IDCODE-0367
CategoryInsecureConfig
SeverityCRITICAL
CWECWE-319
ConfidenceHIGH
ImpactHIGH
LikelihoodHIGH
ExploitabilityEASY
TagsMan-in-the-Middle, HTTP
OWASPA6:2017-Security Misconfiguration, A05:2021-Security Misconfiguration