circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#508 Security hardening: Tauri isolation pattern instead of withGlobalTauri

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#508
  • issue
  • state:closed

**No isolation pattern; `withGlobalTauri` exposes every command to any script in the main webview** - **Severity:** Informational (hardening). - **Location:** `src-tauri/tauri.conf.json:13` (`withGlobalTauri: true`), `:25` (CSP); `src-tauri/capabilities/default.json`; `src-tauri/src/main.rs:737-761` (23 commands, with no app ACL manifest, so all are allowed for the local origin). - **Description:** Any script that runs in the editor origin can call every command. That includes `desktop_request` (acting on all signed-in servers with their tokens), `desktop_thumbnails` on arbitrary paths, `desktop_open_file`, and `desktop_save`, which shows a dialog. Current defenses are good: `script-src 'self'` plus one hash, no `unsafe-eval`; plugin and custom-time scripts run in a small interpreter (`src/custom-time.ts`) and never as JS; the only `innerHTML` is a static template (`src/tour.ts:103`); markdown builds DOM nodes and allows only `https:` links. Remote origins cannot invoke app commands: Tauri 2.12 rejects non-local origins without a `remote` capability (`tauri-2.12.1/src/webview/mod.rs:2080`). - **Suggested fix:** As defense in depth, consider the isolation pattern, or an app ACL manifest (`tauri_build::Attributes::app_manifest`) that lists the commands, and drop `withGlobalTauri` in favour of importing `@tauri-apps/api`. Keep the CSP strict, and never add `unsafe-inline` to `script-src`. - **Confidence:** Confirmed (configuration). --- From the security review of 2026-11-06 (commit 6776c44), finding I-7: hardening or information, filed publicly because it describes no way in. The exploitable findings are private security advisories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/issues/508

Related

Open #508 Security hardening: Tauri isolation pattern instead of withGlobalTauri in the timeline

#508 Security hardening: Tauri isolation pattern instead…