T09 · Insecure Skill Coding Practices
- Location
scripts/report_generator.py:550- Finding
Stored HTML and JavaScript Injection Through Untrusted Topic Data
- Content
View full analysis
str: """Generate detailed analysis HTML.""" html = "" for i, analysis in enumerate(analyses, 1): topic = analysis.original_topic score = analysis.heat_score html += f'''{i}. {topic.title}{score.total_score}分📱 {topic.platform} 🔥 {topic.hot_score:.0f} 热度 {f'👁 {topic.read_count} 阅读' if topic.read_count else ''} {f'❤️ {topic.like_count} 点赞' if topic.like_count else ''} {f'📂 {topic.category}' if topic.category else ''}''' if analysis.angles: html += '' html += '' if analysis.differentiation: diff = analysis.differentiation html += '🎯 推荐切入角度' for angle in analysis.angles[:2]: html += f'''{angle['type']} - {angle['suggested_title']}''' html += '💡 {angle['hook'][:50]}... | 目标情绪: {angle['target_emotion']}- Remediation
View remediation
`, ``, quotes, angle brackets, and encoded variants. Verify that generated reports display these strings as text rather than executable markup. ]]>
