File Upload Security

Use when a WordPress plugin or theme accepts file uploads, processes $_FILES, saves user-provided files, or generates file paths from input. Uses wp_handle_upload and wp_check_filetype_and_ext with a MIME/extension allowlist, blocks executable types, and prevents path traversal. Prevents arbitrary file upload and RCE. Apply proactively to any upload or file-writing code path.

wpultimatesecurity 13dc6c6 3 files · 13.3 KB Updated

File contents

wpultimatesecurity/WordPress-Security-Skills/tree/main/skills/file-upload-security commit 13dc6c6adc

Frequently asked questions

npx skillmds@latest add wpultimatesecurity/file-upload-security