ajinabraham.njsscan.security_electronjs.electron_nodejs_integration
1,129
Download Count*
License
Node integration exposes node.js APIs to the electron app and this can introduce remote code execution vulnerabilities to the application if the app is vulnerable to Cross Site Scripting (XSS).
Run Locally
Run in CI
Defintion
rules:
- id: electron_nodejs_integration
patterns:
- pattern-either:
- pattern: |
new BrowserWindow({webPreferences: {nodeIntegration: true}})
- pattern: |
var $X = {webPreferences: {nodeIntegration: true}};
message: Node integration exposes node.js APIs to the electron app and this can
introduce remote code execution vulnerabilities to the application if the
app is vulnerable to Cross Site Scripting (XSS).
languages:
- javascript
severity: WARNING
metadata:
owasp: "A6: Security Misconfiguration"
cwe: "CWE-272: Least Privilege Violation"
Short Link: https://sg.run/EkKE