Repository navigation
Harden desktop launchers, installers, protocol handlers, and temp files - #19965
Conversation
[Medium impact] The PR appears safe to merge, with a non-blocking focus regression for quoted TUI command strings. Findings
SummaryHardens desktop launchers, app installers, protocol links, and temporary files.
All five supplied previous threads are addressed in the current code. They were unnumbered, so they have no entries in Reviews (4) · Last reviewed commit: "Simplify launch-or-focus-tui, debug publ..." · Reviewed by Greptile |
|
Classification is unsettled at I read the 20-file diff, surrounding launcher callers, existing review comments and base-branch house rules. The queue procedure stops on classification disagreement, so no worker tests or full correctness second opinion ran, and no branch changes or labels were applied. This is waiting for the maintainer to resolve the classification. |
…es (omacom#19965) * Harden desktop launchers, installers, protocol handlers, and temp files * Address Greptile review on TUI launcher, icons, and debug log * Keep omarchy-debug reading its own private temp file * Simplify launch-or-focus-tui, debug publish, and herdr control dir
Keep the current installer guards and locale test fixes from quattro while preserving top-level TUI launcher precedence. The hardening and nested lookup now ship through omacom#19965; consolidate the remaining regression coverage into the existing webapp-name tests and force both find traversal orders. Co-Authored-By: Codex High <noreply@openai.com>
Fixes injection, path traversal, and temporary-file race vulnerabilities across desktop CLI helpers:
omarchy-launch-or-focus*,omarchy-launch-tui,omarchy-launch-webapp): Support-- <command> [args...]argv forwarding and direct single-arg launch withouteval, preventing shell execution and argument splitting on URLs or arguments containing&,;,$(), or spaces. Quote$browser_exec,$APP_ID, andbasename -- "$1".omarchy-tui-install,omarchy-tui-remove,omarchy-webapp-remove,omarchy-games-retro-install): Reject/and./..traversal names, escape Desktop Entry string andExec=values to block newline key injection and broken quoting, canonicalize RetroArch ROM/core paths, and validate downloaded TUI icons withcurl -fsSLand MIME checks.omarchy-webapp-handler-zoom,omarchy-webapp-handler-hey): Validate Zoomconfnoto prevent URL path traversal, strip fragments/control characters, and URI-encode query values while preserving existing percent-escapes.omarchy-debug,omarchy-upload-log,omarchy-menu-select,omarchy-menu-input,omarchy-menu-images,omarchy-agent-look-plugin,omarchy-theme-set-herdr-machines): Replace fixed/tmppaths andmktemp+rmTOCTOU races with privatemktemp/mktemp -ddirectories cleaned up onEXIT, JSON-encode paths interpolated into generated QML, and pass--before the SSH host in herdr theme sync.Verified by Codex and Claude