T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:231- Finding
Unvalidated Server-Controlled Upload and Download Destinations
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent AI image generation helper, but it understates its network behavior and trusts server-provided upload and download URLs for user images and output files.
Review this before installing if your images are private or regulated. The skill needs an AI Hive API key, uploads chosen images, and downloads generated outputs; it should more clearly disclose and constrain the object-storage or CDN hosts it contacts. Prefer using a virtual environment, pinning dependencies, and avoiding sensitive source images until upload/download URL validation and size limits are added.
scripts/imagegen.py:231Unvalidated Server-Controlled Upload and Download Destinations
SKILL.md:51Unpinned Runtime Dependency Installation
The skill invokes local Python scripts with package installation, file access, shell execution, and outbound network access, but it does not declare any explicit tool scope such as permissions or allowed-tools. That mismatch weakens least-privilege controls and can let an agent execute broader capabilities than a reviewer or runtime policy would expect, increasing the risk of unintended command execution, data exposure, or unreviewed external communication.
This code file contains natural-language docstrings and user-facing messages exclusively in Chinese, establishing a fixed language/locale for the skill experience. The policy explicitly flags language or locale constraints when the user is not offered a choice or opt-in, and no alternative language option is presented elsewhere in the file.