T09 · Insecure Skill Coding Practices
- Location
templates/index.html:152- Finding
DOM-Based HTML and JavaScript Injection Through Untrusted Chat Content
- Content
View full analysis
方案A: ${result.planA.title}${result.planA.cost}${result.planA.highlight}Agent: ${result.planA.agent}方案B: ${result.planB.title}${result.planB.cost}${result.planB.highlight}Agent: ${result.planB.agent}- Remediation
View remediation
``` Do not add `allow-scripts` unless scripts are an explicit and reviewed requirement. 7. Deploy a restrictive Content Security Policy that blocks inline scripts and event handlers, for example using nonces for approved scripts. 8. Add automated tests using HTML event handlers, malformed attributes, SVG payloads, and dangerous URL schemes across chat messages, plan properties, POI fields, and report fields. ]]>
