Without HSTS, attackers can attempt SSL stripping and push users toward insecure HTTP sessions. Without certificate pinning, a forged certificate from a compromised or malicious trust chain is more likely to succeed. In both cases, the attacker can position themselves between the user and server, then read or alter traffic without immediate browser warnings.
Why missing HSTS changes the attack path
HSTS is the browser-side instruction that forces HTTPS for a site after the first trusted visit. When it is absent, a network attacker has a better chance of downgrading a user onto plain HTTP, especially on untrusted Wi-Fi or any path where the first request is not already protected. The practical consequence is not just weaker transport, but a wider window for interception before the browser has any reason to insist on TLS.
That matters because the attack often succeeds by shaping user and browser behaviour rather than breaking cryptography. If the application still allows HTTP, the attacker can try to keep the session in cleartext long enough to observe cookies, tokens, form data, or sensitive navigation state. Once that trust boundary is broken, later HTTPS requests may still look normal to the user while the earlier downgrade has already exposed the session.
For a broader hardening view, Security Headers Guide explains how HSTS fits into a defensive header set, and TLS Server Configuration Baseline Guide shows how HSTS should sit alongside a strong TLS baseline rather than be treated as a standalone checkbox.
Why certificate pinning matters when trust chains can be forged
Certificate pinning narrows which certificates or public keys a client will accept. Without it, the client relies on the platform trust store and the normal PKI path validation process, which is usually correct but still depends on the integrity of the issuing chain and the endpoint’s trust environment. If that chain is compromised, misissued, or intercepted by an untrusted middlebox that the client accepts, the browser or app may trust a certificate that the operator never intended to trust.
The practical issue is that pinning changes the attacker’s options. Without it, the adversary only needs a certificate that chains to a trusted root in the client context. With pinning, the attacker must also satisfy the pinned expectation, which makes opportunistic interception much harder. That is why pinning is most valuable where the client population, trust anchors, and certificate lifecycle are controlled well enough to avoid frequent breakage.
For the PKI side of the problem, PKI Basics Guide is the right companion for understanding chain validation and trust stores, and CA/Browser Forum is the authoritative source for publicly trusted certificate issuance and revocation baseline requirements.
What interception changes once the browser or app is fooled
When HSTS is missing or pinning is absent, the main danger is not only visibility, it is control. A man-in-the-middle position can read credentials, session cookies, API responses, and form submissions, and can also alter content in transit. That includes changing links, injecting script, swapping endpoints, or silently manipulating data that the user believes came from the legitimate server.
The impact is especially severe for applications that carry authenticated sessions, because interception can turn a one-time downgrade into durable compromise. The attacker may not need to keep exploiting the transport weakness if they can steal a session token, replay an authenticated request, or capture secrets that unlock later access. In practice, transport weakness becomes an identity and session problem as soon as the application carries anything reusable.
Where client-side trust matters most, TLS Inspection Guide gives useful context on how interception changes certificate trust and why exemptions or validation controls matter, and Web Application Attacks Guide helps connect transport interception to downstream injection and session abuse patterns.
Risk and Threat Considerations
Missing HSTS or pinning creates a practical downgrade and interception exposure, not just a standards gap. The attacker does not need to defeat TLS directly if they can steer the user into weaker trust assumptions, then exploit the resulting visibility into traffic, cookies, and credentials.
Failure mechanism: The browser accepts HTTP or a forged-but-trusted certificate because the site does not force HTTPS and the client has no pinned trust expectation to resist the fake chain.
Impact: The attacker can intercept, modify, or replay traffic, which can lead to session theft, credential capture, content tampering, and silent compromise of user trust.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V12 — Secure Communication | Covers TLS, HTTPS enforcement, and transport security for web apps. |
| V7 — Session Management | Session exposure is the main consequence once transport is intercepted. | |
| V10 — OAuth and OIDC | Token-bearing web flows are especially exposed if TLS trust is weakened. | |
| Recommendation — Require HTTPS-only transport and harden client-server communication against downgrade and interception. Protect session tokens so intercepted traffic cannot be reused to hijack accounts. Bind token flows to strong TLS and reject weak transport assumptions. | ||
| NIST SP 800-53 Rev 5 | SC-8 — Transmission Confidentiality and Integrity | Directly addresses protecting data in transit from interception and alteration. |
| SC-12 — Cryptographic Key Establishment and Management | Certificate trust depends on sound key and certificate lifecycle management. | |
| Recommendation — Enforce confidentiality and integrity protections for sensitive network communications. Manage certificate and trust-anchor lifecycles so forged chains are less viable. | ||
Practitioner Guidance
What to verify: Confirm that the application redirects all HTTP traffic to HTTPS, serves HSTS on every authenticated and sensitive response, and includes a policy that survives first-visit exposure. For pinning, verify which client populations can tolerate rotation events and which environments need a safer trust strategy instead of hard pinning.
Decision rule: If the application handles logins, admin actions, or reusable session material, treat transport downgrade resistance as a release gate rather than a hardening task to defer. If certificate operational churn is high, prefer disciplined PKI and strong server validation over brittle pinsets that will fail during renewal or migration.
Practitioner takeaway: HSTS reduces downgrade opportunity, while pinning reduces trust-chain abuse, and the real security win comes from treating both as part of session protection, not as isolated browser settings.
Related resources from NHI Mgmt Group
- Guide: OWASP Top 10 A04 Guide
- What happens when a web application becomes the front end to cloud email or other back-end services without strong certificate and access hygiene?
- What breaks when missing web application firewalls are left in place on public-facing sites?
- What breaks when server-side role enforcement is missing in a web application?
- What happens when a public web application is exposed without strong monitoring and segmentation?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org