mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-15 09:59:46 +00:00
security: fix command injection in fly/lib/common.sh bash -c invocations (#1424)
Quote $escaped_cmd in bash -c arguments to prevent word splitting. While printf '%q' escapes shell metacharacters, the lack of quotes around the variable causes the shell to split on whitespace before passing to bash -c, enabling argument injection. Fixes #1422 Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
22b6a402f4
commit
979fc4a58e