T09 · Insecure Skill Coding Practices
- Location
.github/workflows/ci.yml- Finding
Attacker-controlled pull request title is interpolated directly into a shell script
- Content
View full analysis
Trigger condition
A pull request targeting main triggers the workflow, subject to any applicable GitHub approval requirements for external contributors. The pr-title job then evaluates the pull request title inside its run script.
Impact
A title containing shell command substitution executes commands with the job's runner privileges. For example, the harmless title feat: $(printf audit-marker) causes printf to execute during assignment. The subsequent title-format check does not prevent execution because it runs afterward.
