Skip to content

Security: zkwi/local-photo-search

SECURITY.md

Security policy

English | 简体中文

Supported versions

Security fixes are provided for the latest released version.

Reporting a vulnerability

Please don't report security problems in public issues. Open the Security tab of this repository and click Report a vulnerability to send a private report.

How the app protects your photos

  • Everything runs on your computer. After the first launch, which downloads Python packages and the model, the app makes no network connections.
  • The background service listens only on 127.0.0.1 with a random port, accepts only requests addressed to 127.0.0.1 or localhost (protection against DNS rebinding), and answers cross-origin requests only from the app window.
  • The app window has a strict Content Security Policy: it can load only its own files, thumbnails, and data from the local background service.
  • Photo folders are only read; exporting makes copies.

Scope and limitations

  • Local Photo Search is a single-user local desktop app and does not defend against other malicious processes running under the same user account on your computer.
  • Running backend.server directly in a regular browser is for local debugging only and is not protected by the Tauri window's Content Security Policy.

简体中文

支持版本

仅对最新正式版本提供安全修复。

报告安全漏洞

请不要在公开 issue 里报告安全问题。在本仓库的 Security 标签页点 Report a vulnerability 私下提交。

程序的防护措施

  • 全部在本机运行,首次启动下载 Python 组件和模型后不再联网。
  • 后台服务只监听 127.0.0.1 的随机端口,只接受发给 127.0.0.1 或 localhost 的请求(防 DNS 重绑定),跨域请求只认程序窗口。
  • 程序窗口启用了严格的内容安全策略(CSP),只能加载自身文件、缩略图和本机后台服务的数据。
  • 照片文件夹只读,导出是复制。

威胁模型边界

  • 本程序是单用户本地桌面应用,不防范同机同一用户账户下的其他本地进程。
  • 开发调试时直接运行 backend.server 并用普通浏览器打开,不受 Tauri 窗口的 CSP 约束,仅限本机开发调试使用。

There aren't any published security advisories