mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 02:12:00 +03:00
This commit mitigates an arbitrary file existence check vulnerability by validating the provided directory path against Tauri's allowed filesystem scope using `tauri_plugin_fs`. - Added `tauri-plugin-fs` dependency. - Injected `AppHandle` into the `data_dir_has_documents` command. - Verified that the target file path (`documents.json`) is allowed within the app's `fs_scope` before calling `.exists()`. - Registered `tauri_plugin_fs` builder on startup. Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension-sample.js | ||
| tauri.conf.json | ||