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 Updated 13 repo stars
Yana AI

File contents

yanacuti1121/Yana-AI commit 7b82edf869

Frequently asked questions

npx get-skill add yanacuti1121/file-upload-security