T09 · Insecure Skill Coding Practices
- Location
scripts/export_pdf.py:17- Finding
Untrusted HTML Rendered with Active Browser Capabilities
- Content
View full analysis
/assets/template.html` 为设计系统参考,生成新的 HTML 文件。 模板中的设计令牌已经封装在 CSS 变量中,跨平台兼容: ``` ### Technical Analysis The exporter accepts an arbitrary HTML path from the command line and opens that document in Playwright Chromium. The browser context retains its default JavaScript and networking capabilities. No request interception, origin restriction, Content Security Policy, markup sanitization, or JavaScript disabling is applied. Consequently, an input document containing active HTML can execute JavaScript and issue outbound requests while the PDF is being generated. This is directly exploitable when an attacker can provide or modify the HTML passed to the script. A secondary path may exist when attacker-controlled meeting content is copied into generated HTML without context-aware escaping, as the Skill instructions do not mandate escaping or sanitization. The packaged `assets/template.html` itself contains no scripts or external URLs; therefore, exploitation requires malicious or compromised input rather than occurring from the bundled template alone. ### Attack Path 1. An attacker supplies a crafted HTML document or causes malicious markup to be included in meeting-derived content. 2. The operator or agent invokes: ```bash python3 scr ...[truncated 1321 chars]- Remediation
View remediation
