Skip to content
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

[Security Issue]"contextIsolation" is disabled #1820

Open
Shashank-In opened this issue Nov 8, 2020 · 4 comments
Open

[Security Issue]"contextIsolation" is disabled #1820

Shashank-In opened this issue Nov 8, 2020 · 4 comments
Assignees
Labels

Comments

@Shashank-In
Copy link

Shashank-In commented Nov 8, 2020

Description
Since contextIsolation is not mentioned hence it will be disabled by default. This means the Electron APIs and the preload script run in the same context, hence an XSS vulnerability could allow an attacker to re-define app functionality via prototype tampering.

Proof:

  1. Go to https://github.com/wavesplatform/WavesGUI/blob/dev/electron/main.ts#L386-L389

webPreferences: {
preload: join(__dirname, 'preload.js'),
nodeIntegration: false
}

Since "contextIsolation" is not mentioned. This will be by default set to false.

Suggested Fix:
It should have contextIsolation: true

Ref:
https://www.electronjs.org/docs/tutorial/context-isolation

Note: I saw the bug bounty program of waves at https://forum.wavesplatform.com/t/bug-bounty-program/1127
However the email bug-bounty@wavesplatform.com. is dead.

@Shashank-In
Copy link
Author

Any updates?

@Shashank-In
Copy link
Author

Hi @tsigel Any updates?

@weidisu
Copy link

weidisu commented Feb 5, 2021

You can try WavesLiteClient here

@Shashank-In
Copy link
Author

Sorry @weidisu
Did not understand why is it related to this bug report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants