T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:231- Finding
Unvalidated Server-Controlled URLs Enable SSRF and Reference Image Disclosure
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears to be a real AI image-generation helper, but it lets remote API responses control upload/download destinations and local output filenames too broadly.
Install only if you trust AI Hive and are comfortable sending selected reference images to its service and related storage endpoints. Use a virtual environment, avoid running it on networks with sensitive internal HTTP services, choose a dedicated output folder, and treat the stored API key as a credential.
scripts/imagegen.py:231Unvalidated Server-Controlled URLs Enable SSRF and Reference Image Disclosure
scripts/imagegen.py:346Unsanitized Remote Metadata Is Used to Construct Download Paths
SKILL.md:52Unpinned Runtime Installation of a Third-Party Dependency
The skill invokes shell commands, performs package installation, reads local files, and makes outbound network requests, but it does not declare any explicit tool scope or permission boundaries. This creates an authorization gap where an agent may execute more capabilities than a reviewer or runtime expects, increasing the risk of unintended file access, command execution, or external data transmission if the skill is misused or modified.
The module docstring and all user-facing prompts/messages are written only in Chinese, including setup, errors, and operational guidance. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is clearly documented and justified, which this file does not do.
The parser and fixed config present this as a generic 'AI Hive 裸接口图片 Skill' with open-ended prompt, parameter, routing, and batch controls, even though the manifest frames it as a livestream-visual tool. This mismatch increases the chance that callers use the skill as a general-purpose image API proxy, bypassing intended product scoping and any policy assumptions attached to the livestream-only context.
The skill exposes task and upload subcommands that are not narrowly scoped to the advertised livestream-image use case. This broadens the capability surface from a single-purpose image-generation helper into a more general media/task client, which can enable unintended data upload workflows and access to arbitrary task metadata under the user's API key.
No suspicious patterns detected.