summarum/src-tauri
google-labs-jules[bot] cb3922c00d 🔒 [security fix] Remove unsafe path canonicalization in directory gate
🎯 What:
Removed filesystem-level path canonicalization in the DataDirGate check (`canon_or_raw`).

⚠️ Risk:
An attacker could bypass directory authorization by creating a symlink to an authorized directory, allowing them to redirect arbitrary path reads/writes via TOCTOU (Time-of-Check to Time-of-Use) attacks or misleading unverified paths.

🛡️ Solution:
Replaced `fs::canonicalize` with purely lexical path normalization (resolving `.` and `..` in memory) to ensure strict string match validation without following symlinks. Ensure relative paths with `..` that go above the start are handled securely without dropping components incorrectly. Added proper Iterator methods to appease clippy.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-08-19 12:11:11 +00:00
..
capabilities add search across all sheets and always-on-top toggle 2026-07-01 14:54:44 +03:00
icons linux + macos release builds (unsigned) 2026-08-14 13:39:08 +03:00
src 🔒 [security fix] Remove unsafe path canonicalization in directory gate 2026-08-19 12:11:11 +00:00
build.rs feat: Summarum — natural language calculator notebook for Windows 2026-06-10 22:19:24 +03:00
Cargo.lock sync Cargo.lock with 1.2.8 2026-08-19 04:13:59 +03:00
Cargo.toml bump cargo version to 1.2.8 2026-08-19 04:13:38 +03:00
extension-sample.js run extensions in a quickjs wasm sandbox 2026-07-29 14:38:28 +03:00
tauri.conf.json update tauri.conf version to 1.2.8 2026-08-19 04:13:49 +03:00
tauri.linux.conf.json linux + macos release builds (unsigned) 2026-08-14 13:39:08 +03:00
tauri.macos.conf.json linux + macos release builds (unsigned) 2026-08-14 13:39:08 +03:00
tauri.windows.conf.json linux + macos release builds (unsigned) 2026-08-14 13:39:08 +03:00