Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

security: reject path traversal in theme and image file commands

Open PathGao opened this issue 4 months ago • 0 comments

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.

PathGao avatar Jul 24 '26 20:07 PathGao