T09 · Insecure Skill Coding Practices
- Location
SKILL.md:318- Finding
HTML Renderer Permits Unrestricted Local-File Access
- Content
View full analysis
- Remediation
View remediation
`. 3. Reject or sanitize `file://` references, absolute filesystem paths, and references that escape the approved asset directory. 4. Disable external resource loading when network access is unnecessary, and enforce outbound network restrictions at the process or container level. 5. Run `wkhtmltopdf` under a dedicated, low-privilege operating-system account with no access to user home directories, credentials, or unrelated project data. 6. Use an isolated container or sandbox with a read-only filesystem and only the input/output directories mounted. 7. Apply execution time, memory, file-size, and process limits to reduce renderer abuse. 8. Clearly document that HTML must be treated as untrusted active content rather than as a passive document format. ]]>
