-
Notifications
You must be signed in to change notification settings - Fork 56
build: upgrade dependencies and electron to fix security issues #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,9 @@ process.defaultApp = true; | |||||
| const systemVersion = process.getSystemVersion(); | ||||||
| console.log(systemVersion); | ||||||
|
|
||||||
| const remoteMain = require('@electron/remote/main'); | ||||||
| remoteMain.initialize(); | ||||||
|
|
||||||
| const { | ||||||
| app, | ||||||
| BrowserWindow, | ||||||
|
|
@@ -364,7 +367,7 @@ class SimpleosWallet { | |||||
| paintWhenInitiallyHidden: true, | ||||||
| titleBarStyle: 'hiddenInset', | ||||||
| webPreferences: { | ||||||
| nodeIntegration: true, | ||||||
| nodeIntegration: true, contextIsolation: false, | ||||||
|
||||||
| nodeIntegration: true, contextIsolation: false, | |
| nodeIntegration: true, contextIsolation: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling
nodeIntegrationwhile disablingcontextIsolationis a critical security risk in Electron. This configuration allows the renderer process to access Node.js APIs directly, which can be exploited via Cross-Site Scripting (XSS) to achieve Remote Code Execution (RCE) on the user's machine. Even as a temporary stop-gap, it is strongly recommended to use a preload script andcontextBridgeto expose only the minimum necessary APIs to the renderer.