Skill / SKILL.md

File Upload Security

wpultimatesecurity/WordPress-Security-Skills

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.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/wpultimatesecurity/WordPress-Security-Skills' skill-source

Use the complete skill-source/skills/file-upload-security directory with your client’s skill installer.

  • skills/file-upload-security

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/file-upload-security

Compatibility & requirements

Declared compatibility

Examples generally use PHP 7.4 syntax; check each API against target WordPress/PHP versions. Use maintained WordPress and supported PHP in production. Shell examples require their named tools.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
8c836fe1b770f2f26ba9ea0fb2e7299eddab07d7d89b2086eee0ad9e1fabe086
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills