T09 · Insecure Skill Coding Practices
- Location
SKILL.md:153- Finding
Command Injection Through Direct Topic Interpolation in Bash Templates
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` 4. Explicitly reject path separators, control characters, newlines, shell metacharacters, and unexpected Unicode characters before use. 5. Prefer implementing slug generation through a fixed helper script or a non-shell API so that the topic can never become part of executable syntax. 6. Add regression tests using topics containing command substitutions, backticks, quotes, semicolons, newlines, path traversal sequences, and leading option characters. 7. Apply the same correction to both occurrences at lines 153 and 294. ]]>
