T09 · Insecure Skill Coding Practices
- Location
vwu-chat.sh:7- Finding
Unvalidated API Endpoint Override Can Expose Credentials and Prompts
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a simple vwu.ai chat helper, but it can send the user's API key and prompt to an environment-controlled endpoint without validation.
Review this before installing. Use it only in an environment where VWU_BASE_URL cannot be set by untrusted wrappers, shell profiles, CI variables, or other users, and avoid sending sensitive prompts unless you trust the destination. The maintainer should pin or validate the API host, require HTTPS, and build JSON with a proper encoder such as jq.
vwu-chat.sh:7Unvalidated API Endpoint Override Can Expose Credentials and Prompts
vwu-chat.sh:35Unescaped Arguments Permit JSON Request-Body Injection
The natural-language content of the skill is presented exclusively in Chinese, including setup and usage instructions. This can violate a language/locale policy when users are not given an explicit choice of language and no region-specific justification is provided.
The script's comments and all user-facing messages are in Chinese, including usage and error guidance. Because the file does not indicate that the skill is intended only for Chinese-speaking users or provide any language opt-in, this creates a natural-language locale policy concern.
The script transmits user-supplied prompt data and an API bearer token to an external service defined by VWU_BASE_URL, which can be overridden via environment variable. This creates a real data exfiltration risk if sensitive prompts are passed, and a token exposure risk if the base URL is redirected to an untrusted endpoint; additionally, the JSON body is built by direct string interpolation, which can cause malformed requests or content injection into the outbound payload.
fi
# 调用 API
response=$(curl -s "$VWU_BASE_URL/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VWU_API_KEY" \
-d "{
No suspicious patterns detected.