T09 · Insecure Skill Coding Practices
- Location
scripts/gen_douyin_hot_html.py:239- Finding
Stored HTML and JavaScript Injection in Generated Reports
- Content
View full analysis
🥇'; tagHtml = '新'; } else if (rank === 2) { rowCls = 'row-top2'; badgeHtml = '🥈'; tagHtml = '热'; } else if (rank === 3) { rowCls = 'row-top3'; badgeHtml = '🥉'; tagHtml = '升'; } else { badgeHtml = '' + rank + ''; } html += '' + '' + badgeHtml + '' + '' + '' + title + '' + '' + desc + '' + '' + '' ...[truncated 2924 chars]- Remediation
View remediation
` element and escape at least `<` as `\u003c` before insertion. 6. Avoid directly embedding arbitrary JSON inside an executable ``, quotes, HTML tags, event-handler attributes, and `javascript:` URLs. 10. Apply the same URL validation before creating clickable PDF annotations. ]]>
