Cybersecurity › Web Application Security
Secure File Handling
22 ControlsSecure File Handling
Implement secure file upload, download, and processing mechanisms.
- Validate file types via magic numbers (file headers), not just extensions
- Store user uploads in a separate (perhaps untrusted) storage bucket / domain
- Strip metadata (EXIF) from images
- Scan uploads with an antivirus/malware engine