T09 · Insecure Skill Coding Practices
- Location
SKILL.md:97- Finding
Unvalidated Stock-Code Interpolation Enables Command Injection and Path Traversal
- Content
View full analysis
` directory. The same unvalidated placeholder is subsequently reused throughout the project for source files, generated analyses, and the final report. Consequently, a single malicious value can affect many filesystem operations. ### Attack Path 1. An attacker submits a value presented as a stock code but containing shell metacharacters, path separators, or traversal components. 2. The Agent substitutes the value into `mkdir -p data/{code}` or the absolute workspace path. 3. If the command is passed to a shell, the injected syntax can execute an additional command with the Agent process's privileges. 4. If the value is passed to filesystem APIs, traversal can redirect the data directory outside the expect ...[truncated 675 chars]- Remediation
View remediation
