T09 · Insecure Skill Coding Practices
- Location
assets/report_widget.html:169- Finding
DOM-Based HTML Injection Through Unescaped Widget Data
- Content
View full analysis
' + e.dimension + '' + '' + e.value + '' + '' + e.desc + ''; ``` ```javascript card.innerHTML = '' + '' + w.label + '' + '' + (w.tag || '') + '' + '' + '' + (w.leave ? ''; ``` ```javascript const tags = (d.tags || []).map(t => '' + t + '').join(''); const tagCls = d.primary ? 'tag-primary' : 'tag-secondary'; const descCls = d.primary ? 'dest-desc dest-primary' : 'dest-desc'; const reasons = (d.reasons || []).map(r => '请假:' + w.leave + '' : '') + '出发:' + w.depart + '' + '返程:' + w.return_date + '' + '行程:' + w.duration + '' + '优势:' + w.advantage + '' + '- ' + r + '
').join(''); card.innerHTML = '' + '' + d.name + '' + '' + (d.label || '') + '' + '' + '' + tags + '' + '- ' + reasons + '
- Remediation
View remediation
