HTTPS is enforced
Why it matters
Without HTTPS enforcement, every byte transmitted between your server and the user travels in plaintext — session tokens, form fields, and API responses are readable by anyone on the same network. Man-in-the-middle attackers on public Wi-Fi can silently rewrite page content, inject scripts, or steal credentials before the user even knows they're on your site. PCI-DSS 4.0 Req 4.2.1 and NIST SP 800-53 SC-8 both mandate encrypted transport; a lapse here puts cardholder data directly in scope for a breach. OWASP A02 (Cryptographic Failures) flags unencrypted transport as the most straightforward path to data exposure.
Severity rationale
Critical because unencrypted HTTP transmits credentials and session tokens in plaintext, enabling trivial interception on any shared network.
Remediation
Add an explicit HSTS header via your framework config so browsers and intermediaries refuse to downgrade connections. Most modern hosts (Vercel, Netlify, Cloudflare Pages) enforce HTTPS automatically, but the header is still required for browser-side enforcement.
// next.config.js
async headers() {
return [{
source: '/(.*)',
headers: [{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains'
}]
}]
}
For Express or Fastify, helmet() sets HSTS and a sensible default for every other security header in one call.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Security Headers & Basics Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- cwe · CWE-319 — Cleartext Transmission of Sensitive Information
- cwe · CWE-311 — Missing Encryption of Sensitive Data
- owasp:2021 · A02 — Cryptographic Failures
- pci-dss:4.0 · Req 4.2.1 — Strong cryptography for transmission over open public networks
- nist:rev5 · SC-8 — Transmission Confidentiality and Integrity
- soc2:2017 · CC6.6 — Protection against threats from outside system boundaries
- soc2:2017 · C1.1 — Identification and protection of confidential information
Taxons
History
- 2026-04-17·v1.0.0·Initial import from security-headers·automated
- 2026-07-06·v1.0.1·Add SOC 2 TSC mapping (CC6.6, C1.1) from the verified compliance crosswalk register (docs/compliance/).·by soc2-mapping-enrichment-ship-2