T09 · Insecure Skill Coding Practices
- Location
SKILL.md:100- Finding
Predictable Shared Temporary Directory Enables Frame Disclosure and File Manipulation
- Content
View full analysis
&1 ``` The same predictable directory is later removed at `SKILL.md:239`: ```bash rm -rf /tmp/video_frames ``` ### Technical Analysis The Skill stores extracted frames in the fixed, globally predictable path `/tmp/video_frames`. It creates this path with `mkdir -p` rather than atomically creating a private directory, and it does not verify ownership, reject symbolic links, assign restrictive permissions, or isolate concurrent executions. Frame names are also predictable because they are derived from video basenames. The `ffmpeg` commands use `-y`, allowing existing output paths to be overwritten without prompting. A local attacker who can write to the temporary directory may pre-create files or symbolic links at anticipated frame paths. Depending on the behavior of the invoked tools and filesystem, this can cause writes to attacker-sel ...[truncated 2489 chars]- Remediation
View remediation
