T09 · Insecure Skill Coding Practices
- Location
assets/report_template.html:281- Finding
Stored HTML and JavaScript Injection in Generated Contract Reports
- Content
View full analysis
``).join(''); ``` Risk data is also rendered without escaping: ```javascript const html = filtered.map(r => `${ki.label}${ki.value}`).join(''); document.getElementById('riskItemsContainer').innerHTML = htm ...[truncated 2495 chars]${levelNames[r.level] || r.level} ${r.title || '未命名风险'} ${r.dimension ? '' + r.dimension + '' : ''}${r.description || ''}${r.original ? '📌 原文:' + r.original + '' : ''} ${r.suggestion ? '✅ 建议:' + r.suggestion + '' : ''} ${r.law_ref ? '⚖️ ' + r.law_ref + '' : ''}- Remediation
View remediation
`, `&`, U+2028, and U+2029. 4. Prefer placing serialized data in a non-executable ``, ``, `javascript:` URLs, SVG event handlers, and malformed HTML. ]]>
