← Back to Baseline

MB-0779

Automated Observed page restricts framing

MB-C04 HTTPS & TLS Enforcement Medium

A successful same-host application response emits an unambiguous enforced restrictive CSP frame-ancestors policy, or valid X-Frame-Options DENY/SAMEORIGIN when no enforced frame-ancestors overrides it. This scopes the observation to the requested page.

Overview

A successful same-host application response emits an unambiguous enforced restrictive CSP frame-ancestors policy, or valid X-Frame-Options DENY/SAMEORIGIN when no enforced frame-ancestors overrides it. This scopes the observation to the requested page.

Why it Matters

A page embedded in an untrusted frame can be presented with misleading controls or context. Enforced framing restrictions reduce that opportunity at the assessed page.

Header precedence and policy ambiguity matter because a restrictive-looking fallback may not govern the browser's decision.

Verification Steps

Manual Verification

  1. Request the configured successful same-host page.
  2. Inspect enforced CSP frame-ancestors and X-Frame-Options, including duplicates and precedence.
  3. A report-only CSP does not enforce frame restrictions; an enforced frame-ancestors directive overrides the XFO fallback.

Command / Review Sample

curl --max-time 10 -sS -D - -o /dev/null https://store.example/
# Restrictive example: Content-Security-Policy: frame-ancestors 'self'

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: Set an enforced restrictive CSP frame-ancestors policy on the affected page, or valid X-Frame-Options where no enforced frame-ancestors overrides it. Remove broad schemes/wildcards and contradictory duplicate directives after reviewing intended embedding.
  2. Validate the change: Inspect the successful response and test authorized/unauthorized framing in a browser. Enforced frame-ancestors takes precedence over X-Frame-Options.
  3. Recheck MB-0779: 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

The observed page permits unrestricted framing with no valid restrictive fallback.

Pass Example

An unambiguous restrictive enforced frame-ancestors policy applies, or valid DENY/SAMEORIGIN XFO applies when not overridden.

Scope and Evidence Limits

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

A successful same-host application response emits an unambiguous enforced restrictive CSP frame-ancestors policy, or valid X-Frame-Options DENY/SAMEORIGIN when no enforced frame-ancestors overrides it. This scopes the observation to the requested page.

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