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 Updated 56 repo stars

File contents

wpultimatesecurity/WordPress-Security-Skills commit 13dc6c6adc

Frequently asked questions

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