Skip to content

Fix unsafe shell invocation in amber exec#1376

Open
tcoatswo wants to merge 1 commit into
amberframework:masterfrom
tcoatswo:fix/amber-cli-injection-complete
Open

Fix unsafe shell invocation in amber exec#1376
tcoatswo wants to merge 1 commit into
amberframework:masterfrom
tcoatswo:fix/amber-cli-injection-complete

Conversation

@tcoatswo
Copy link
Copy Markdown

@tcoatswo tcoatswo commented May 19, 2026

Summary

Replace shell-interpolated process execution in amber exec with argument-array Process.run calls.

Changes

  • replace shell-based editor launch with direct process execution
  • replace shell-based file copy with direct process execution
  • add regression coverage for shell metacharacters in --editor and copied filenames

Verification

I could not run the Crystal spec suite in this environment because the host does not have crystal or shards installed. This PR includes regression specs for the affected code paths for maintainers/CI to exercise.

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