T09 · Insecure Skill Coding Practices
- Location
SKILL.md:66- Finding
Bearer Credential Forwarded to an Unvalidated Configurable Endpoint
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill’s image-generation purpose is coherent, but it tells the agent to send a Coze API key and prompts to a configurable endpoint and to download returned URLs without validation.
Install only if you trust the Coze configuration source and understand that your prompts and Coze API token will be used for external API calls. Pin the endpoint to an official HTTPS Coze domain, protect the credential config file, and validate downloaded image URLs before use.
SKILL.md:66Bearer Credential Forwarded to an Unvalidated Configurable Endpoint
SKILL.md:88Unvalidated Workflow URL Download Permits Unintended Network Requests and Unbounded File Writes
The skill documentation explicitly instructs reading an API key from local config and sending both the user prompt and credentials to an external Coze endpoint, but it does not provide a clear user-facing warning about third-party data transmission. This creates a real privacy and trust issue because users may unknowingly send sensitive prompts or metadata to an external service.
The documented workflow performs a direct outbound HTTP request to an external API using a bearer token and user-supplied prompt content. In context, this is expected functionality for an image generation integration, but it is still a real security/privacy concern because unredacted user input is transmitted off-host and the skill does not emphasize consent, destination validation, or safe handling of returned URLs.
PROMPT="一只可爱的橘猫在窗台上晒太阳,温暖的光线,写实摄影风格 --ar 1:1"
# 3. 调用 coze_workflow 执行 / Execute
result=$(curl -s -X POST "${BASE_URL}/v1/workflow/stream_run" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d "{
The placeholder value is written only in Chinese ("你的扣子工作流id"), which imposes a specific language in the configuration without offering a language choice or documenting why a Chinese locale is required. This matches the language/locale policy concern for natural-language content in config files.