T09 · Insecure Skill Coding Practices
- Location
scripts/generate_sipoc.py:193- Finding
Stored HTML and Script Injection in Generated SIPOC Documents
- Content
View full analysis
{name}{"" + desc + "" if desc else ""} ''' return html ``` Additional affected output contexts include: ```python html = f''' SIPOC - {process_name} {css}``` The same unsafe interpolation pattern is used for process step names, process step descriptions, supplier data, input data, output data, customer data, and the process identifier. ### Technical Analysis Values originating in caller-provided JSON are concatenated directly into an HTML document without contextual output encoding. The code does not use `html.escape`, a sanitizer, or a templating en ...[truncated 2324 chars]{process_name}
{"流程编号: " + process_id + "" if process_id else ""}- Remediation
View remediation
``` 6. Add regression tests covering script tags, event-handler attributes, closing `title` tags, quotes, ampersands, SVG payloads, and malformed input. 7. Document that existing HTML files generated from untrusted input should not be opened until they have been regenerated with the corrected implementation. ]]>
