T09 · Insecure Skill Coding Practices
- Location
templates/template.html:375- Finding
Unescaped Screenshot-Derived Data Can Produce Executable HTML
- Content
View full analysis
` must have a unique `data-id`. ``` The template demonstrates direct insertion of inventory values into HTML elements and attributes: ```html PLA Example Brand PLA Basic Black Bulk 1 ``` The `data-id` value is subsequently interpolated into markup and inline JavaScript through `innerHTML`: ```javascript const cell = tr.querySelector('.use-cell'); cell.innerHTML = `In use − ${r.using}/${total} +Consumed- Remediation
View remediation
``` ...[truncated 514 chars]
