T09 · Insecure Skill Coding Practices
- Location
scripts/comfy_client.py- Finding
Server-controlled image filenames escape the local output directory
- Content
View full analysis
Impact
A filename such as ../outside.txt writes into the existing parent directory; an absolute filename discards out_dir entirely. The service can create or truncate files writable by the client process and supply their contents. No image decoding, extension restriction, containment check, or confirmation precedes the write.
