Overview
One successful same-origin no-redirect HTTPS GET at the configured path emits exactly one X-Content-Type-Options header whose trimmed value is nosniff. Missing or invalid header on an observed successful response fails; duplicate headers, redirects, transport failures and incomplete collection remain UNKNOWN. HSTS and frame protection are assessed separately.
Why it Matters
MIME sniffing can cause a browser to interpret a response differently from its declared content type. The nosniff response policy reduces that interpretation flexibility.
Its presence does not establish correct Content-Type values, HSTS or frame protection.
Verification Steps
Manual Verification
- Issue a GET to the configured path without following redirects.
- Require exactly one X-Content-Type-Options header with trimmed value nosniff.
- Duplicate headers, redirects and transport/collection gaps remain unresolved.
Command / Review Sample
curl --max-time 10 -sS -D - -o /dev/null https://store.example/
# Expected: X-Content-Type-Options: nosniff
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
- Set X-Content-Type-Options: nosniff in the response-producing Magento/web-server/edge layer that serves the reported application path. Remove conflicting duplicate declarations and ensure JavaScript, CSS and downloads use correct Content-Type values; avoid applying changes only to an unused sample configuration.
- Retrieve the same successful HTTPS application page through the actual production ingress and rerun. Test asset loading and intended downloads in staging; assess HSTS and frame protection using their separate checks.
- Recheck MB-0803: 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
HTTP/1.1 200 OK
X-Content-Type-Options: invalid
Pass Example
HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
# Exactly one header on the named successful no-redirect HTTPS GET.
Scope and Evidence Limits
Rule revision: 1. Target modes: LOCAL, REMOTE.
One successful same-origin no-redirect HTTPS GET at the configured path emits exactly one X-Content-Type-Options header whose trimmed value is nosniff. Missing or invalid header on an observed successful response fails; duplicate headers, redirects, transport failures and incomplete collection remain UNKNOWN. HSTS and frame protection are assessed separately.
Nosniff plus existing HSTS/frame controls is not a claim of every security header on every route. No source-file union is used; runtime headers are collected directly with peer verification and bounded memory. Original historical criterion and ID remain in the engineering backlog; this new ID records only its exact supported observation.
Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.