Overview
In LOCAL mode, readable markup/CSS files under app must contain no literal HTTP subresource or form-action references. In REMOTE mode, successful HTTPS pages at configured paths must contain no literal HTTP subresource/form references. Dynamic code-generated URLs, external stylesheets and unvisited routes require separate assessment.
Why it Matters
Mixed content happens when an HTTPS page loads resources (images, scripts, styles) over HTTP. Browsers may block these requests or show warnings. If attackers tamper with those HTTP assets, they can inject malware or steal user data even though the main page uses HTTPS.
Removing mixed content ensures that every resource is delivered securely. This keeps customers safe, avoids browser security errors, and maintains trust in the checkout flow.
Verification Steps
Manual Verification
- Inspect asset and form-action URLs in the configured files or fetched HTTPS pages.
- Identify literal http:// references in browser-loading contexts; distinguish a link or documentation example from a subresource.
- Dynamic URLs and unvisited pages need additional review.
Command / Review Sample
<!-- Problematic subresource example -->
<script src="http://cdn.example/library.js"></script>
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: Replace the reported HTTP asset URL with its verified HTTPS equivalent or an appropriate same-origin URL. Update theme/module/configuration sources rather than editing generated static files directly.
- Validate the change: Redeploy affected static assets and invalidate relevant caches; inspect browser network requests on the affected pages for remaining mixed content.
- Recheck MB-0029: In a build or staging environment, exercise the affected feature with ordinary, malformed and unauthorized input as relevant to the reported operation; verify that legitimate behavior still works. Production rescanning remains read-only.
Examples
Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.
Fail Example
A stylesheet loads an image through an HTTP url() reference.
Pass Example
Collected markup/CSS uses HTTPS or appropriate relative references for assessed subresources and form actions.
Scope and Evidence Limits
Rule revision: 3. Target modes: LOCAL, REMOTE.
In LOCAL mode, readable markup/CSS files under app must contain no literal HTTP subresource or form-action references. In REMOTE mode, successful HTTPS pages at configured paths must contain no literal HTTP subresource/form references. Dynamic code-generated URLs, external stylesheets and unvisited routes require separate assessment.
In LOCAL mode, readable markup/CSS files under app must contain no literal HTTP subresource or form-action references. In REMOTE mode, successful HTTPS pages at configured paths must contain no literal HTTP subresource/form references. Dynamic code-generated URLs, external stylesheets and unvisited routes require separate assessment.
Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.