T09 · Insecure Skill Coding Practices
- Location
scripts/analyze.js:121- Finding
Unrestricted Network Target Delegation and Third-Party URL Disclosure
- Content
View full analysis
` Site ${i+1}: ${u} WebFetch prompt: "Extract all visual design properties: colors, fonts, spacing, layout, border-radius, shadows from this page."`).join('\n')} ``` `scripts/define-style.js:39-40`: ```js 使用 WebFetch 获取 ${url},提取完整的视觉设计信息。 补充使用 WebSearch 搜索该品牌的设计语言相关信息(如有公开 Brand Guide)。 ``` `scripts/export.js:185-189`: ```js 使用 WebFetch 获取 ${url} 提取所有 CSS 属性:颜色、字体、间距、阴影、圆角、布局。 如果 WebFetch 返回内容不足,补充使用: WebFetch URL: https://r.jina.ai/${url} ``` ### Technical Analysis The scripts accept command-line values as URLs and insert them into prompts that direct a network-capable agent to invoke WebFetch. They do not validate: - The URL protocol. - Embedded usernames or passwords. - Loopback, private, link-local, or cloud metadata addresses. - Redirect destinations. - Hostnames resolving to private addresses. - Sensitive query parameters. - Whether the user has consented to sending the URL to Jina. Retrieving a public HTTP or HTTPS page is necessary for the declared design-analysis functionality. Allowing arbitrary network targets is not necessary. The Jina fallback creates an additional trust boundary because the complete user-supplied URL is placed after `https://r.jina.ai/`. A URL contain ...[truncated 2005 chars]- Remediation
View remediation
