T09 · Insecure Skill Coding Practices
- Location
scripts/cw_client.cjs- Finding
Unvalidated remote artifact IDs permit writes outside the output directory
- Content
View full analysis
Impact
The response provider can create or truncate files outside the output directory, subject to the process's permissions and the permitted filename extensions. For example, with output_name 'figure', id '/../../victim' and format 'json', the destination resolves to '../victim.json' relative to targetDir. Existing JSON configuration or project files can therefore be overwritten.
