T09 · Insecure Skill Coding Practices
- Location
scripts/generate.py:224- Finding
Unrestricted Image URL Fetching Enables Server-Side Request Forgery and Data Relay
- Content
View full analysis
- Remediation
View remediation
MAX_IMAGE_BYTES: raise ValueError("Image exceeds maximum size") output.write(chunk) ``` 6. Require an image MIME type and validate magic bytes before further processing. 7. Obtain explicit confirmation before uploading a locally fetched image to a third-party provider. 8. Use network egress controls to prevent the generation process from reaching localhost, cloud metadata services, and printer-management subnets. ]]>
