T09 · Insecure Skill Coding Practices
- Location
scripts/capture.mjs:276- Finding
Shell Command Injection via User-Controlled Output Path
- Content
View full analysis
/tmp/wtpdf-proof).pdf ``` 3. `parseArgs()` assigns the value to `opts.output`. 4. `assemblePDF()` interpolates the value into the command string. 5. The shell evaluates the command substitution when `execSync()` runs. 6. The injected command executes with the same operating-system privileges as the skill process. ### Impact Assessment Successful exploitation provides arbitrary command execution under the account running the skill. The attacker could read or modify files accessible to that account, access environment variables and credentials, execute network requests, tamper with generated artifacts, or use any other permissions available to the process. The scope is the host or container in which the skill ...[truncated 90 chars]- Remediation
View remediation
