contrib.nodejsscan.security_electronjs.electron_experimental_features

Author
99
Download Count*
License
Experimental features are not expected to be in production ready applications.
Run Locally
Run in CI
Defintion
rules:
- id: electron_experimental_features
patterns:
- pattern-either:
- pattern: |
new BrowserWindow({webPreferences: {experimentalFeatures: true}});
- pattern: |
var $X = {webPreferences: {experimentalFeatures: true}};
message: Experimental features are not expected to be in production ready
applications.
languages:
- javascript
severity: WARNING
metadata:
owasp: A06:2017 - Security Misconfiguration
cwe: "CWE-272: Least Privilege Violation"
category: security
technology:
- electron
license: Commons Clause License Condition v1.0[LGPL-2.1-only]
Short Link: https://sg.run/qx2b