matcha
matcha copied to clipboard
BUG: Symlink attack in filepicker path navigation
Describe the bug Filepicker at tui/filepicker.go:94 uses os.Stat() without checking symlinks. Attacker could create symlinks to read arbitrary directories.
To reproduce
- Create symlink: ln -s /etc/passwd ~/.config/matcha/link
- Navigate to symlink path via filepicker
- Contents of /etc exposed
Expected behavior Use os.Lstat() to detect symlinks, or explicitly follow only safe links
Matcha version master
OS Unix-like
Additional context File: tui/filepicker.go line 94 Security: symlink directory traversal
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.