Skip to content

fix(security): prevent command injection via additional-app input#42

Merged
DeepDiver1975 merged 1 commit into
mainfrom
fix/security-additional-app-injection
Apr 17, 2026
Merged

fix(security): prevent command injection via additional-app input#42
DeepDiver1975 merged 1 commit into
mainfrom
fix/security-additional-app-injection

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Member

Summary

  • inputs.additional-app was interpolated directly into run: shell commands (cd apps/${{ inputs.additional-app }}, php occ a:e ${{ inputs.additional-app }}) in php-codestyle.yml and php-unit.yml
  • Fix: route the value through env: ADDITIONAL_APP in the affected step and quote the variable in shell

Security impact

CRITICAL — any caller can inject arbitrary shell commands via the additional-app input value.

Test plan

  • Verify workflows still set up the additional app correctly with a normal value
  • Verify a value with shell metacharacters does not execute injected commands

🤖 Generated with Claude Code

Pass inputs.additional-app through an environment variable instead of
interpolating directly into run: shell commands, preventing shell
metacharacter injection.
@DeepDiver1975 DeepDiver1975 marked this pull request as ready for review April 16, 2026 16:46
@DeepDiver1975 DeepDiver1975 merged commit 8ffeec1 into main Apr 17, 2026
15 checks passed
@DeepDiver1975 DeepDiver1975 deleted the fix/security-additional-app-injection branch April 17, 2026 08:09
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.

3 participants