Skip to content

[Security] Stage menu IPC files out of world-writable /tmp - #10506

Open
Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:security/menu-ipc-runtime
Open

[Security] Stage menu IPC files out of world-writable /tmp#10506
Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:security/menu-ipc-runtime

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • omarchy-menu-select, omarchy-menu-input, and omarchy-menu-images used bare mktemp for selection/done files
  • Typed input (including secrets) and picker results landed in world-writable /tmp; after rm of the done file, another user can recreate that name
  • Stage those files under $XDG_RUNTIME_DIR (or a 0700 /tmp/omarchy-$UID fallback)

Test plan

  • bash test/shell.d/menu-ipc-path-test.sh
  • Run omarchy menu input and confirm the IPC files are not created under /tmp/tmp.*

Made with Cursor

@Chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant