← Back to Baseline

MB-0030

Automated Sensitive cookies use Secure, HttpOnly, and SameSite

MB-C04 HTTPS & TLS Enforcement High

Cookies matching the configured session/admin cookie-name list and emitted by successful same-host HTTPS responses on the configured probe paths have unambiguous Secure, HttpOnly and SameSite=Lax or Strict attributes. Cookie names alone do not classify authentication sensitivity outside this explicit list; unobserved authenticated sessions are not assessed.

Overview

Cookies matching the configured session/admin cookie-name list and emitted by successful same-host HTTPS responses on the configured probe paths have unambiguous Secure, HttpOnly and SameSite=Lax or Strict attributes. Cookie names alone do not classify authentication sensitivity outside this explicit list; unobserved authenticated sessions are not assessed.

Why it Matters

Cookies matching the configured session/admin cookie-name list and emitted by successful same-host HTTPS responses on the configured probe paths have unambiguous Secure, HttpOnly and SameSite=Lax or Strict attributes. Cookie names alone do not classify authentication sensitivity outside this explicit list; unobserved authenticated sessions are not assessed.

This scoped observation supports a focused review. Independent operational evidence is needed for controls outside the declared criterion.

Verification Steps

Manual Verification

  1. Read the explicit session/admin cookie-name list and configured probe paths.
  2. Inspect cookies emitted by successful same-host HTTPS responses. Require unambiguous Secure, HttpOnly and SameSite=Lax or Strict for matching names.
  3. Missing responses and unobserved authenticated sessions remain outside the conclusion. Cookie names alone do not classify other cookies.

Command / Review Sample

curl --max-time 10 -sS -D - -o /dev/null https://store.example/
# Inspect cookie attributes without recording session values.

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: Identify the sensitive cookie and the application/proxy layer setting it. Apply Secure and HttpOnly where the cookie is not intentionally needed by JavaScript, and choose SameSite compatible with the authentication/payment flow; SameSite=None requires Secure.
  2. Validate the change: Inspect Set-Cookie on actual authenticated and payment return flows. Confirm login, embedded checkout and logout still work; unrelated public cookies do not prove session-cookie protection.
  3. Recheck MB-0030: 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

Configured session cookie emitted without Secure or HttpOnly.

Pass Example

Configured cookie emitted on the assessed HTTPS response with Secure; HttpOnly; SameSite=Lax.
Unobserved sessions remain outside scope.

Scope and Evidence Limits

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

Cookies matching the configured session/admin cookie-name list and emitted by successful same-host HTTPS responses on the configured probe paths have unambiguous Secure, HttpOnly and SameSite=Lax or Strict attributes. Cookie names alone do not classify authentication sensitivity outside this explicit list; unobserved authenticated sessions are not assessed.

Sensitive session/admin cookies actually emitted by successful same-host HTTPS responses on the configured probe paths have exact Secure and HttpOnly attributes and SameSite=Lax or Strict. This assesses observed cookie emissions, not unobserved authenticated sessions.

Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.

References