T09 · Insecure Skill Coding Practices
- Location
media-analyzer.sh:72- Finding
JSON Injection Through Unescaped Media File Paths
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill does what it claims as a media analyzer, but its output commands can silently overwrite existing files.
Install only if you are comfortable with a Chinese-language local media tool that reads the files or directories you point it at. Be careful when using frame, cover, or waveform commands because existing frame.jpg, cover.jpg, waveform.png, or any chosen output path may be overwritten without warning.
media-analyzer.sh:72JSON Injection Through Unescaped Media File Paths
media-analyzer.sh:94Unconditional Overwrite of User-Selected Output Files
A skill description written only in Chinese without an explicit locale constraint or alternate language guidance can cause operators or routing systems to misinterpret the skill's scope and behavior. That ambiguity can lead to accidental invocation, poor review quality, or misuse by users who cannot accurately understand prerequisites, limitations, or outputs.
The trigger phrases are broad enough to match common user intents such as generic 'content analysis' or 'video analysis', which can cause the skill to activate unexpectedly outside its narrow media-file context. This increases the risk of incorrect routing, unintended tool use, or the skill being selected for requests it is not appropriate to handle.
The frame, cover, and waveform functions invoke ffmpeg with the -y flag, which forcibly overwrites the user-supplied output path without prompting. In an agent or automation context, this can silently destroy existing files if the caller passes an important path or if defaults like frame.jpg/cover.jpg/waveform.png collide with existing files.
All natural-language help and status/error messages are presented only in Chinese, which imposes a specific language on users without opt-in or documented locale scope. The file does not indicate that the skill is intended only for a Chinese-language environment or provide any way to select another language.
No suspicious patterns detected.