T09 · Insecure Skill Coding Practices
- Location
SKILL.md:39- Finding
Hard-Coded Dify API Bearer Token
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it says, but it exposes a service token and generates HTML using unsafe raw template insertion that could run injected browser code.
Review before installing. This skill sends the survey goal to Dify for generation, and the distributed package contains a reusable API token that should be revoked and moved to protected runtime storage. The HTML template should also be fixed to safely encode embedded data before users open generated forms or enter sensitive responses.
SKILL.md:39Hard-Coded Dify API Bearer Token
SKILL.md:142HTML and JavaScript Injection Through Unsafe Template Substitution
L003 将触发范围扩展到“帮我做个问卷”“设计几道题”“想调研一下”等宽泛表述,并明确要求“即使他们没有明确说出‘问卷’两个字”也应使用本技能。这种描述缺少边界和反例,容易与普通求助或泛化的内容设计请求冲突,导致误触发。
The embedded hard-coded bearer token exposes a live credential inside the skill definition, allowing unauthorized reuse by anyone who can read the file. This can enable abuse of the linked external service, incur cost, bypass intended access controls, and make the skill a vehicle for secret exfiltration.
The skill advertises local questionnaire generation/rendering, but its workflow transmits the user's survey goal and related content to a third-party API. This creates a privacy and transparency issue because user-provided business context, customer research plans, or potentially sensitive internal objectives may leave the local environment without clear disclosure or consent.
The external transmission is real and materially relevant because the skill sends user-supplied survey content to api.dify.ai. In this context, the danger is not mere network use but undisclosed third-party data transfer of potentially sensitive planning, customer, or internal business information.
POST https://api.dify.ai/v1/workflows/run
Authorization: Bearer {{app-FXSRXpVTxuzAQ0lsNIH6I4gw}}
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
The documentation says the page does not upload responses to any server, but the skill also instructs sending user content to an external API during questionnaire generation. Even if end-user form responses stay local, the contradictory messaging can mislead users into sharing sensitive survey goals or internal research information under a false privacy assumption.
HTML 模板在 L151 固定设置为 lang="zh-CN",且整份技能说明默认以中文输出和中文界面为前提,没有给用户语言/地区选择或声明仅适用于中文场景。这可能违反语言/区域选择应由用户决定的自然语言政策要求。
This markdown file uses Chinese for all user-facing natural-language content, but it does not indicate that the language is optional or region-specific. Under the language/locale policy, forcing a specific language without user opt-in can be a natural-language policy violation.