T09 · Insecure Skill Coding Practices
- Location
skill.json:18- Finding
Shell Command Injection Through Unsafely Interpolated Tool Arguments
- Content
View full analysis
/tmp/skill-injection-test ; # ``` can produce a command structurally equivalent to: ```sh node ... --query "" ; printf injected > /tmp/skill-injection-test ; #" ``` The shell would execute the appended command independently of the intended Node.js script. Other templated arguments are also inserted without explicit shell escaping, although their declared numeric, boolean, or enumerated types may reduce exploitability if the framework strictly enforces those schemas. The JavaScript argument parsers do not cause this vulnerability because shell interpretation occurs before Node.js receives `process.argv`. Validation inside the scripts therefore cannot prevent injected shell commands from run ...[truncated 2030 chars]- Remediation
View remediation
