An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: Document external link opening as outside the security boundary
Daniel04c9b2d763d0
diff --git a/.github/SECURITY.md b/.github/SECURITY.mdindex 8ba04cb546..9e562cb84a 100644--- a/.github/SECURITY.md+++ b/.github/SECURITY.md@@ -14,6 +14,6 @@ Some areas we don't consider security vulnerabilities:* Sync storage tampering: SiYuan treats user-configured sync storage and principals with write access to the sync repository as trusted. Data loss, rollback, or sync corruption caused by a malicious or compromised storage operator or a principal with write access is outside the security boundary. This exclusion does not apply when an attacker can tamper with sync data without storage write access, such as through an authentication/authorization bypass or a transport security failure* `/public/` unauthenticated access: The `/public/` route serves files without authentication because it is designed for public sharing (https://github.com/siyuan-note/siyuan/issues/8593), and users are responsible for the security of files they place in the `data/public/` directory* Config file encryption: Credentials stored in the workspace config (e.g., cloud login token, sync credentials, AI API keys, and Secrets) are obfuscated with a hardcoded AES key and IV instead of being truly encrypted, because the config must remain readable across devices and reinstallations. An attacker who can read the config file can recover these credentials. The security boundary is access control over the workspace directory and the OS user account-* `shell.openExternal()` with unvalidated URLs: In the Electron main process, `shell.openExternal()` is called without a URL-scheme allowlist at `windowNavigate` and `setWindowOpenHandler` (`app/electron/main.js`). Handing off arbitrary URLs to the OS shell is expected behavior because opening external links in the system browser is a common user need; whether the OS-level URI-handler chain is exploitable depends on the user's OS and installed software, outside SiYuan's security boundary+* Opening external links with unvalidated URLs: Handing off arbitrary URLs to the OS with no URL-scheme allowlist is expected behavior because opening external links in the system browser or launching the default handler for custom URI schemes is a common user need; whether the OS-level URI-handler chain is exploitable depends on the user's OS and installed software, outside SiYuan's security boundary. This applies to the Electron main process `shell.openExternal()` at `windowNavigate` and `setWindowOpenHandler` (`app/electron/main.js`), and to the mobile WebView bridges (Android `JSAndroid.openExternal()` / `exportByDefault()` reaching `Intent.ACTION_VIEW` via `openByDefaultBrowser()` in `Utils.java`, HarmonyOS `JSHarmony.openExternal()`, and iOS `webkit.messageHandlers.openLink`)Thank you very much!