File Upload Security

Accept user file uploads without introducing remote code execution, stored XSS, or polyglot attacks. Covers magic-byte validation, strict type allowlists, image re-encoding to defang embedded payloads, EXIF stripping, virus scanning, path-safe storage keys, and serving via a separate origin with Content-Disposition. Invoke when adding upload to a new endpoint or migrating from local-disk storage to object storage.

yanacuti1121 7b82edf 15.6 KB Updated 2 repo stars

File contents

yanacuti1121/Yana-AI/tree/main/core/skills/gw360--file-upload-security commit 7b82edf869

Frequently asked questions

npx skillmds add yanacuti1121/file-upload-security