Skip to content

[CRITICAL] preload.ts exposes raw ipcRenderer to renderer via contextBridge #48

Description

@NotKiwy

preload.ts:232 exposes raw ipcRenderer.on(event, msg) to renderer through contextBridge. any js running in the renderer can subscribe to literally any IPC channel and eavesdrop on internal app events

this completely defeats the whole sandbox concept. extensions can listen to everything, including msgs they should never have access to

sooo, any extension can spy on all inter-process communication going on in the app

fix: expose only specific whitelisted IPC channels through contextBridge instead of the whole ipcRenderer obj. use a wrapper that filters events by name and vaildates payloads before passing anything through

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions