T09 · Insecure Skill Coding Practices
- Location
scripts/fetch_sph_ai.py:281- Finding
Unescaped API Data Enables Persistent Script Injection in Generated Reports
- Content
View full analysis
' articles_html += f'''{cover_html}''' ``` The generated content is then written to disk and opened automatically: ```python html = html.replace("{{CATEGORY_CARDS}}", category_cards) output_path.write_text(html_content, encoding="utf-8") if not args.no_open: if sys.platform == "darwin": subprocess.run(["open", str(output_path)], check=False) elif sys.platform == "linux": subprocess.run(["xdg-open", str(output_path)], check=False) ``` ### Technical Analysis The report generator treats fields returned by the remote API—including titles, authors, categories, and co ...[truncated 1976 chars]{title}{author} 👍 {likes} 🔁 {shares} 💬 {comments}- Remediation
View remediation
