Skip to content

Remote notice feed can invoke arbitrary OS protocol handlers at startup #1458

Closed

Description

@carfeii

Affected version: confirmed on commit 78283f490874eed70f99f0639104a68416bbc175 (master branch, current HEAD as of 2026-10-31).

Summary

PicGo fetches a remote notice document at startup (https://release.picgo.app/remote-notice.yml) and automatically runs any OPEN_URL/COMMON/SHOW_NOTICE action it contains. All three action handlers pass the action's url field straight to Electron's shell.openExternal() with no scheme validation. shell.openExternal dispatches whatever scheme is given to the OS's own protocol-handler resolution, not just http(s). The notice document itself is fetched over plain HTTPS with no additional signature or integrity check.

Details

src/main/apis/app/remoteNotice/index.ts:

const REMOTE_NOTICE_URL = isDev ? 'http://localhost:8181/remote-notice.json' : 'https://release.picgo.app/remote-notice.yml'
...
case IRemoteNoticeActionType.OPEN_URL:
  shell.openExternal(action.data?.url || '')
  break
case IRemoteNoticeActionType.COMMON:
  ...
  if (action.data?.url) {
    shell.openExternal(action.data.url)
  }
  break
case IRemoteNoticeActionType.SHOW_NOTICE:
  showNotification({
    ...
    callback () {
      if (action.data?.url) {
        shell.openExternal(action.data.url)
      }
    }
  })
  break

init() runs at app startup and automatically triggers APP_START-hooked actions (src/main/lifeCycle/index.ts), so no user interaction is required for OPEN_URL/COMMON actions to fire. There is no allowlist on the URL's scheme/host anywhere in this file, and no cryptographic signature on the notice document beyond ordinary TLS.

Steps To Reproduce

(available upon request)

Impact

Whoever controls the content served at release.picgo.app/remote-notice.yml (the vendor's own infrastructure, or anyone able to intercept/replace that response, e.g. via a compromised CDN edge or cache) can make every running PicGo instance invoke an arbitrary OS-registered custom URL scheme handler at next startup, with zero user interaction. Depending on what protocol handlers are registered on the victim's OS, this can range from launching an unexpected application to triggering actions in a vulnerable third-party handler. This is a missing defense-in-depth control (no scheme allowlist, no signed payload) independent of how difficult compromising the vendor endpoint itself is.

Activity

  1. self-assigned this
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 11, 2026
    8238126
  3. added a commit that references this issue on Nov 11, 2026
    01f86c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions