T09 · Insecure Skill Coding Practices
- Location
generate.mjs:96- Finding
Unrestricted Local File Disclosure Through Image Input
- Content
View full analysis
- Remediation
View remediation
MAX_IMAGE_BYTES) { throw new Error('Image exceeds the maximum allowed size'); } return resolved; } ``` The implementation should additionally validate magic bytes before encoding the file. ]]>
