T09 · Insecure Skill Coding Practices
- Location
scripts/svg_composer.py:858- Finding
Arbitrary File Write Through Unsanitized Preview Filenames
- Content
View full analysis
" ) ``` 3. The function joins the malicious filename with `output_dir`. 4. The resulting path resolves outside the designated output directory. 5. The function opens that path in write mode and writes attacker-controlled content. 6. If the destination already exists, it is overwritten. ### Impact Assessment An attacker can create or overwrite files anywhere writable by the Python process. The exact scope is limited to the operating-system privileges of the process running the Skill; the code does not independently elevate privilege ...[truncated 403 chars]- Remediation
View remediation
