T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:349- Finding
Server-Controlled Filename Components Permit Path Traversal and File Overwrite
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly coherent for AI image generation, but it needs review because remote API response fields can influence local downloads and file paths.
Review this skill before installing. Only use it with an AI Hive account and images you intend to upload, prefer an isolated Python environment, and avoid running it in sensitive networks or directories until result URL validation and safe filename containment are added.
scripts/imagegen.py:349Server-Controlled Filename Components Permit Path Traversal and File Overwrite
scripts/imagegen.py:264Unvalidated Remote Result URLs Enable Client-Side Requests to Internal Resources
SKILL.md:76Runtime Dependency Is Installed Without Version or Integrity Pinning
The skill exposes shell, network, file read/write, and environment-backed behavior through documented script invocations, but it does not declare any explicit tool scope or permissions boundaries. That makes the operational surface larger and less reviewable, increasing the chance that an agent invokes filesystem or network actions unexpectedly, especially because the script can query a remote API and save generated outputs locally.
The description is very broad and covers many common e-commerce image tasks across multiple platforms, which can cause the skill to trigger for routine user requests beyond the author's intended context. Over-broad invocation raises the risk of accidental tool use, unnecessary file/network access, or the skill steering unrelated requests into scripted execution when a simpler non-tool response would have been safer.
The module docstring and all user-facing instructions are written only in Chinese, and the script's prompts, help text, and status messages consistently assume Chinese-language operation. Because the file contains no opt-in, fallback, or justification that this is a region-specific skill, this is a natural-language locale policy violation under the stated rule.
The title and operating instructions are primarily in Chinese, and the description is written as though the skill is intended to run in Chinese by default, while also embedding English platform names. There is no statement offering the user a language choice or clarifying that output language follows user preference, which can violate language/locale policy expectations.
No suspicious patterns detected.