T09 · Insecure Skill Coding Practices
- Location
scripts/html_report.py:148- Finding
Unescaped Session Metadata Allows Active HTML Injection in the Chromium Report Renderer
- Content
View full analysis
0 else 0 u_cost = (cost / tokens * 1000000) if tokens > 0 else 0 html += f"""""" ``` `scripts/generate_report_image.py:67-80` writes and opens the resulting document in Chromium: ```python # Save HTML with open(html_path, "w", encoding="utf-8") as f: f.write(html) print(f"HTML saved to {html_path}") # Generate image with html2image hti = Html2Image() hti.output_path = str(output_dir) # High-resolution PPT viewport (1440p style ratio, increased height for safety) hti.size = (1200, 1000) hti.scree ...[truncated 2781 chars]{m[:18]}{fmt_tokens(tokens)}Unit Cost: ${u_cost:.2f}/MCost: {fmt_cost(cost)}- Remediation
View remediation
