← Back to Baseline

MB-0781

Automated Named sensitive HTTP paths are denied or absent

MB-C01 File & Folder Permissions High

Six named deployment artifact paths are denied or absent over HTTP. A bounded prefix containing a recognizable artifact signature is a violation; ambiguous 200 pages, redirects and transport gaps remain unresolved. No response contents are retained.

Overview

Six named deployment artifact paths are denied or absent over HTTP. A bounded prefix containing a recognizable artifact signature is a violation; ambiguous 200 pages, redirects and transport gaps remain unresolved. No response contents are retained.

Why it Matters

Deployment files can contain source details or credentials that should never be public responses. Testing named paths catches a serving boundary failure that file permissions alone may miss.

A branded error page with status 200 is not conclusive artifact evidence, so response interpretation must remain bounded.

Verification Steps

Manual Verification

  1. Assess /app/etc/env.php, /app/etc/config.php, /.git/HEAD, /composer.json, /var/log/system.log and /var/report/ at the intended runtime base URL.
  2. Request each path without following redirects and retain status/signature metadata rather than sensitive response contents. Denial/absence statuses 401, 403, 404 and 410 are conclusive for this predicate.
  3. Use bounded protected response inspection to distinguish recognizable artifact signatures from generic pages. Ambiguous HTTP 200 responses, redirects and transport failures remain unresolved.

Command / Review Sample

# Initial bounded GET metadata review for one named path:
curl --max-time 10 --max-filesize 4096 --range 0-4095 -sS -D - -o /dev/null https://store.example/app/etc/env.php
# Repeat for all six named paths above.
# A size-limit or transfer error is unresolved, not a denial.
# Review signatures through a protected bounded workflow; never publish response contents.

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: At the effective document root, origin and CDN deny the specific artifact paths reported exposed. Move deployment configuration, Git metadata and logs out of public aliases and clear cached copies where needed.
  2. Validate the change: Verify the six named paths return denial/absence without credentials; rotate exposed secrets and investigate access history if a real artifact signature was served.
  3. Recheck MB-0781: Repeat the same read-only request from the scanner after deployment and compare the effective response, including redirects and edge caches. Test the affected storefront, Admin or checkout behavior in staging before rollout.

Examples

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

Fail Example

A named path returns a bounded recognizable deployment-artifact signature.

Pass Example

All six named paths are conclusively denied or absent; ambiguous responses are not counted as clean evidence.

Scope and Evidence Limits

Rule revision: 1. Target modes: LOCAL, REMOTE.

Six named deployment artifact paths are denied or absent over HTTP. A bounded prefix containing a recognizable artifact signature is a violation; ambiguous 200 pages, redirects and transport gaps remain unresolved. No response contents are retained.

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