Execution Risks

Execution Risks

PHP Execution in Uploads

What This Means

This finding indicates that PHP files can be executed within upload or storage directories.

These directories are typically intended for file storage, not code execution.


Why It Matters

Upload directories (such as /wp-content/uploads/) are commonly writable by the application.

If PHP execution is allowed in these locations, attackers may:

This is a common method used in real-world WordPress attacks.


How Steel Security Detects This

Steel Security checks whether PHP files placed in upload directories can be executed.

If execution is possible, the directory is flagged as a risk.


How to Fix It

To resolve this issue:


What to Expect After Fixing

After applying protections:


How to Verify

To verify the fix:

  1. upload or place a test PHP file in an upload directory
  2. attempt to access it via browser
  3. confirm that execution is blocked

Expected results include:


Common Causes


Best Practices


Direct PHP Access Allowed

What This Means

This finding indicates that certain PHP files on your site can be accessed directly via a browser.

These files may not be intended to be executed outside of normal WordPress workflows.


Why It Matters

Many PHP files are designed to be included internally, not accessed directly.

If these files are accessible, attackers may:

Restricting direct access reduces these risks.


How Steel Security Detects This

Steel Security identifies PHP files that should not be directly accessible and checks whether they can be executed via a browser.

If direct access is possible, the file is flagged.


How to Fix It

To resolve this issue:


What to Expect After Fixing

After applying protections:


How to Verify

To verify the fix:

  1. attempt to access a flagged PHP file directly via its URL
  2. confirm that access is denied (e.g., 403 Forbidden)

Ensure that:


Common Causes


Best Practices