T09 · Insecure Skill Coding Practices
- Location
scripts/understand.cjs:43- Finding
Arbitrary Local File Disclosure Through Unrestricted Image Path Handling
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This image-analysis skill is purpose-aligned, but needs Review because it can send arbitrary local files or arbitrary URL responses to Minimax without tight validation or user confirmation.
Review before installing. Use this only for images you are comfortable sending to Minimax, avoid passing sensitive local paths or untrusted URLs, and prefer running it in a restricted environment with a dedicated API key until the skill adds explicit upload consent, real image validation, URL/IP protections, and file/response size limits.
scripts/understand.cjs:43Arbitrary Local File Disclosure Through Unrestricted Image Path Handling
scripts/understand.cjs:69Server-Side Request Forgery and Data Exfiltration Through Unrestricted Image URLs
The skill invokes Node, reads an API key from the environment, and sends data to an external network endpoint, but it declares no explicit tool scope or permissions. This weakens least-privilege controls and makes it harder for users or the platform to understand that the skill can access secrets and exfiltrate image data to a third party.
The skill description is written as a Chinese-only instruction set and does not offer any language or locale choice to the user. Under the language/locale policy, forcing a specific language without opt-in is a natural-language policy concern unless the locale restriction is explicitly documented and justified.
The skill description and usage omit a clear warning that supplied images, including local files, may be transmitted to the external Minimax API. This is dangerous because users may unknowingly expose sensitive personal, proprietary, or regulated image content to a third party.
The instruction to 'always use this skill' whenever a user sends an image or asks about image content is overly broad and can trigger the skill for routine requests without necessity checks. In context, that increases the chance that local files or user-provided image URLs are sent to an external API unexpectedly, creating privacy and consent risks.
The file’s usage examples and error example strings present Chinese-only prompt examples such as "描述这张图片" and "这张图片有什么" without indicating that language selection is optional or that the skill is intended for a Chinese-only context. This creates a natural-language locale bias that can conflict with organizational language-choice policies.
Detected: suspicious.env_credential_access