Skip to content

[Security Issue]"contextIsolation" is disabled  #1820

Description

@Shashank-In

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.

Activity

  1. Shashank-In commented on Nov 19, 2020

    @Shashank-In
    Author

    Any updates?

  2. Shashank-In commented on Nov 25, 2020

    @Shashank-In
    Author

    Hi @tsigel Any updates?

  3. weidisu commented on Feb 5, 2021

    @weidisu

    You can try WavesLiteClient here

  4. Shashank-In commented on Feb 9, 2021

    @Shashank-In
    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions