Skip to content

主进程 pigui:invoke 补 sender 校验 #160

Closed

Description

@bubbleptr

ADR-0029「安全边界」段。

ipcMain.handle("pigui:invoke") 没有 sender 校验。今天标注层走独立 channel 绕开了它,但 handler 本身应只认主窗口的 webContents(拒绝 WebContentsView 与任何其他 sender)。

验收标准

  • 非主窗口 sender 的调用被拒绝并有测试(fake sender)。
  • 现有 E2E 全绿。

Activity

  1. added
    ready-for-agent
    on Sep 2, 2026
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions