Skip to content

🐛 Fix(gui): restrict remote notice URLs to HTTP and HTTPS - #1459

Merged
Molunerfinn merged 1 commit into
Molunerfinn:devfrom
carfeii:fix/remote-notice-url-scheme-allowlist
Nov 11, 2026
Merged

Molunerfinn merged 1 commit into
Molunerfinn:devfrom
carfeii:fix/remote-notice-url-scheme-allowlist

Conversation

@carfeii

@carfeii carfeii commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Fixes the issue described in #1458.

Restricts every shell.openExternal() call in src/main/apis/app/remoteNotice/index.ts to http:/https: URLs only, via a new isSafeExternalUrl() helper checked before each of the three call sites (SHOW_NOTICE callback, OPEN_URL, COMMON). The remote notice document is fetched over HTTPS but has no signature or other integrity check beyond TLS, and these handlers can run automatically at startup with no user interaction, so a compromised notice response should not be able to invoke an arbitrary OS-registered custom protocol handler.

Verified the file transpiles cleanly with esbuild after the change; no new imports or dependencies needed since URL is a global.

@Molunerfinn

Copy link
Copy Markdown
Owner

Hi, thanks for the PR. Please change the fix target branch to dev

@carfeii
carfeii changed the base branch from master to dev November 2, 2026 15:53
@carfeii
carfeii requested a review from Molunerfinn as a code owner November 2, 2026 15:53
@Molunerfinn Molunerfinn changed the title Restrict remote notice action URLs to http/https before shell.openExternal 🐛 Fix(gui): restrict remote notice URLs to HTTP and HTTPS Nov 11, 2026
Allow only HTTP and HTTPS URLs in all three remote notice actions before calling shell.openExternal.

ISSUES CLOSED: Molunerfinn#1458
@Molunerfinn
Molunerfinn force-pushed the fix/remote-notice-url-scheme-allowlist branch from 5078595 to 8238126 Compare November 11, 2026 07:31
@Molunerfinn
Molunerfinn merged commit 01f86c1 into Molunerfinn:dev Nov 11, 2026
3 checks passed
@Molunerfinn

Copy link
Copy Markdown
Owner

Thanks for the contribution!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants