T09 · Insecure Skill Coding Practices
- Location
scripts/main.mjs:6- Finding
API Credential Disclosure Through an Unrestricted Base URL Override
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This image-generation skill is mostly purpose-aligned, but it has under-scoped network and credential handling that users should review before installing.
Install only if you are comfortable sending image prompts and settings to Crazyrouter and possibly underlying model providers. Use a limited-scope API key, avoid setting CRAZYROUTER_BASE_URL unless you fully trust the endpoint, choose a fresh output filename to avoid overwrites, and avoid sensitive prompts until the skill adds stronger URL validation, download limits, and overwrite protection.
scripts/main.mjs:6API Credential Disclosure Through an Unrestricted Base URL Override
scripts/main.mjs:54Server-Side Request Forgery and Resource Exhaustion Through Unvalidated Image URLs
scripts/main.mjs:17Documented Image Count Limit Is Not Enforced
The trigger text is broad enough to activate on many ordinary requests to 'generate, create, or draw an image,' which can cause the agent to invoke this external integration more often than the user likely expects. In practice, overbroad routing increases the chance of unintended data disclosure to a third-party API and incorrect tool selection when a safer or more appropriate local capability exists.
The skill sends user prompts and request parameters to Crazyrouter, but the description does not clearly disclose that user data leaves the agent environment and is processed by an external service. This creates a meaningful privacy and trust risk because users may include sensitive text in prompts without realizing it will be transmitted to a third party.
The script writes image data directly to a user-specified path using writeFile without checking whether the target already exists or warning before overwrite. In an agent/tooling context, a prompt or caller-controlled output path could unintentionally clobber existing user files, causing data loss or destructive modification of local files.
Detected: suspicious.env_credential_access