Markpad
Markpad copied to clipboard
security: reject path traversal in theme and image file commands
Theme read/delete names and image save directories/filenames accept caller-controlled path components. A crafted Tauri command can escape the themes or document directory, including through a pre-existing symlinked image directory.\n\nScope: accept only a single safe path component for names/directories, canonicalize image destinations after creation, require they remain under the document parent, and add Rust tests for traversal, absolute paths, separators, and symlink escape.