T09 · Insecure Skill Coding Practices
- Location
scripts/cue.py- Finding
Externally supplied source IDs escape the data directory
- Content
View full analysis
Impact
For example, sid ../../outside causes write_source to create or truncate ../outside.jsonl and ../outside.txt relative to the selected data directory. Downloaded filing text supplies the resulting document content. Writes remain limited by filesystem permissions and the appended extensions, but existing files outside the authorized output directory can be overwritten.
