Overview
Within the collected pub tree, no configured var/log or var/report relative path, nor symlink to the corresponding project target, is present. This is filesystem placement, not a live HTTP exposure assertion.
Why it Matters
Magento writes logs into var/log/ and sometimes into custom extension folders. If these logs are exposed through the web server, attackers can download them and gain access to sensitive data such as errors, file paths, SQL queries, API keys, or customer information.
Protecting application logs ensures only administrators can read them. Customers and search engines must never access raw logs. Proper log permissions and web server rules are critical to prevent information disclosure.
Verification Steps
Manual Verification
- Review pub for the configured log/report paths and symlinks to project var/log or var/report.
- Resolve link targets without reading sensitive contents.
- Verify the public document root separately.
Command / Review Sample
find pub -type l -print
find pub -path '*/var/log*' -print
find pub -path '*/var/report*' -print
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
- Investigate and change: Move the reported log/report directory or symlink outside the served pub tree and remove serving aliases to it. Add origin/edge denial for log/report paths and retain approved private diagnostic access.
- Validate the change: Verify affected URLs are inaccessible without authorization and review historical exposure for sensitive log contents before rotating affected secrets.
- Recheck MB-0042: Verify access as the relevant runtime identity and retest the affected upload, cache or release feature after the scoped change. Rerun against the same deployment; avoid recursive permission changes unrelated to the reported paths.
Examples
Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.
Fail Example
pub/var/log is a symlink to the deployment's application logs.
Pass Example
The collected public tree contains neither configured log/report paths nor links exposing those targets.
Scope and Evidence Limits
Rule revision: 3. Target modes: LOCAL.
Within the collected pub tree, no configured var/log or var/report relative path, nor symlink to the corresponding project target, is present. This is filesystem placement, not a live HTTP exposure assertion.
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.