Skip to content

[Security] Shell-quote install helpers before bash -c - #9085

Closed
chessing234 wants to merge 3 commits into
omacom:quattrofrom
chessing234:security/install-helpers-shell-quote
Closed

chessing234 wants to merge 3 commits into
omacom:quattrofrom
chessing234:security/install-helpers-shell-quote

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Summary

  • omarchy-install-font / omarchy-install-app interpolated names and packages into a string run by bash -c
  • omarchy-install-and-launch quoted the message and desktop id but left packages raw
  • A crafted package argument became arbitrary commands that omarchy-pkg-add then escalated via sudo
  • %q-quote every interpolated piece

Test plan

  • bash test/shell.d/install-helpers-quote-test.sh
  • Menu-driven font/app installs still work with normal package names

Made with Cursor

Unquoted package/family names let a caller inject commands that
omarchy-pkg-add then escalates via sudo.
@chessing234

Copy link
Copy Markdown
Contributor Author

superseded by #7843 on quattro — the install helpers already %q-quote.

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