T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:231- Finding
Unvalidated Server-Controlled Upload and Download URLs
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it says, but its downloader trusts remote task metadata enough to risk writing files outside the intended output folder.
Install only if you are comfortable sending prompts and selected reference images to AI Hive and storing an AI Hive API key locally. Prefer running it in a contained workspace with a dedicated output directory until filename sanitization, URL validation, redirect limits, and download size limits are added.
scripts/imagegen.py:231Unvalidated Server-Controlled Upload and Download URLs
scripts/imagegen.py:348Path Traversal Through Unsanitized Task Metadata
SKILL.md:53Unpinned Third-Party Dependency Installation
The skill invokes shell commands, performs network access to a fixed external host, and references file read/write behavior, yet it does not declare any explicit tool scope or permission boundaries. This creates an over-privileged execution posture where an agent may run the skill with broader capabilities than users expect, increasing the risk of unintended command execution, data exposure, or misuse of local files and environment secrets.
The description contains broad search-style triggers covering many Chinese and English query variants, which can cause the skill to activate in loosely related contexts without clear user intent. Over-broad activation is dangerous here because the skill includes code execution and external network interaction, so accidental invocation could send prompts or reference images to a third-party service unexpectedly.
This code file contains user-facing natural-language descriptions and CLI guidance exclusively in Chinese. Under the language/locale policy rule, forcing a specific language without user opt-in or a documented regional justification is a policy concern.