T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:219- Finding
Unvalidated Server-Provided Upload and Download URLs Enable Data Exfiltration and Server-Side Request Forgery
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill broadly matches its AI Hive image-generation purpose, but its helper script trusts remote service responses in ways that could overwrite local files or send/download data outside the documented scope.
Review this skill before installing. Use it only if you trust the AI Hive service and are comfortable sending prompts and selected reference images to it. Prefer a dedicated output directory with no important files, avoid sensitive reference images, and consider patching URL allowlists, filename sanitization, and download size/type limits before routine use.
scripts/imagegen.py:219Unvalidated Server-Provided Upload and Download URLs Enable Data Exfiltration and Server-Side Request Forgery
scripts/imagegen.py:320Path Traversal in Server-Controlled Output Filenames Allows Arbitrary File Overwrite
scripts/imagegen.py:247Unbounded and Unvalidated Result Downloads Permit Disk Exhaustion and Arbitrary Content Storage
The skill invokes local scripts, performs package installation, reads local files, and makes network requests, but it does not declare any explicit tool scope or permission boundaries. This creates an avoidable least-privilege failure: an agent may execute shell, filesystem, environment, and network actions without a clear contract, increasing the chance of unintended command execution, data exposure, or outbound requests beyond user expectations.
The description contains broad trigger phrases such as general searches for Dreamina alternatives, Chinese image generation, marketing images, and stable domestic image APIs, which can cause the skill to activate for requests outside its narrow migration purpose. Over-broad routing is dangerous here because the skill includes code execution and networked image-generation workflows, so accidental invocation could lead to unnecessary external data transfer or execution of commands when a simpler or safer skill should have handled the request.
The module docstring and all user-facing CLI messages are written exclusively in Chinese, and the skill provides no language selection, fallback, or notice that it is limited to Chinese users. This is a natural-language policy concern because it imposes a specific locale on all users without opt-in.
No suspicious patterns detected.