T09 · Insecure Skill Coding Practices
- Location
scripts/playlet_douyin_daily.py:237- Finding
Stored HTML and Attribute Injection Through Untrusted API Response Fields
- Content
View full analysis
' # 生成作品链接:优先使用url字段,如果为null则用photoId拼接 if url: title_html = f'{title}' elif photo_id: # 使用抖音作品ID拼接链接 title_html = f'{title}' else: title_html = f'{title}' articles_html += f'''{cover_html}''' ``` The assembled content is subsequently written directly to an HTML file: ```python with open(html_file, 'w', encoding='utf-8') as f: f.write(html_content) return html_file ``` The generated report is then automa ...[truncated 3250 chars]{title_html}{author} 🔗 {shares} 👍 {likes} 💬 {comments}- Remediation
View remediation
