← Back to Baseline

MB-0780

Automated Media inventory has no executable PHP-like filenames

MB-C01 File & Folder Permissions High

The bounded readable pub/media filename inventory contains no PHP-like executable extension, including double extensions. Symlinks, unreadable subtrees and budget gaps remain unresolved. Web-server execution policy is separate evidence.

Overview

The bounded readable pub/media filename inventory contains no PHP-like executable extension, including double extensions. Symlinks, unreadable subtrees and budget gaps remain unresolved. Web-server execution policy is separate evidence.

Why it Matters

Writable media storage is a common destination for unexpected executable filenames. An explicit filename inventory makes these concrete artifacts visible for review.

The presence of a suspicious name does not prove execution, and its absence does not prove the web server blocks every executable form.

Verification Steps

Manual Verification

  1. Inventory the entire bounded readable pub/media tree and inspect PHP-like executable extensions, including compound names.
  2. Account for symlinks, unreadable paths and traversal limits.
  3. Verify server execution policy independently.

Command / Review Sample

find pub/media -type f -print
# Review extensions such as .php, .phtml and compound PHP-like names; do not execute findings.

Use the assessed Magento project and the appropriate application or read-only review account. Replace example hosts, paths and identifiers with the assessment scope; configuration and source fragments are illustrative.

Remediation / Fix Guidance

  1. Investigate and change: Inspect the reported PHP-like media filenames privately without executing them. Quarantine unauthorized content and review upload validation and server execution denial; distinguish legitimate reviewed artifacts from compromise indicators.
  2. Validate the change: Rerun the complete media filename inventory and test execution denial with an approved inert staging fixture. Filename absence alone is not server policy proof.
  3. Rerun MB-0780 against the same release, profile and relevant file/key/package scope; compare the new evidence and inspect any independent collection gaps.

Examples

Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.

Fail Example

pub/media/catalog/image.php.jpg is present as a PHP-like compound filename covered by the policy.

Pass Example

The complete bounded media filename inventory has no configured PHP-like executable extensions; handler policy remains separate evidence.

Scope and Evidence Limits

Rule revision: 1. Target modes: LOCAL.

The bounded readable pub/media filename inventory contains no PHP-like executable extension, including double extensions. Symlinks, unreadable subtrees and budget gaps remain unresolved. Web-server execution policy is separate evidence.

This check covers only the collected observation. Missing collection scope, external controls and runtime behavior require separate evidence.

Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.

References