T09 · Insecure Skill Coding Practices
- Location
scripts/email_sender.py:184- Finding
Untrusted News Content Is Inserted into HTML Without Escaping
- Content
View full analysis
🔥 {hot_score} {i}. {title}📰 {source} 可信度 {level}""" if include_summary and summary: html += f'{summary[:200]}...\n' ``` Key points are also appended without escaping: ```python for kp in key_points[:3]: html += f'- {kp[:100]}
\n' ``` ### Technical Analysis Article titles, URLs, source names, summaries, and key points originate from remote RSS feeds and web pages. These fields are directly interpolated into an HTML document without contextual encoding or URL-scheme validation. Truncating a string does not make it safe. An attacker-controlled title or summary can contain HTML elements, while an attacker-controlled URL can contain a deceptive or unsafe URI. Depending on the renderer, the resulting report may load external tracking resources, alter the visible report, create fraudulent links, or execute active content. Email clients commonly apply sanitization, but this behavior is not consistent enough to constitute an appl ...[truncated 1303 chars]- Remediation
View remediation
