BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. HSTS Missing: What Strict-Transport-Security Prevents

Guides · ← All guides

HSTS Missing: What Strict-Transport-Security Prevents

Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read

By the Ingenious AI team

The short answer: Strict-Transport-Security (HSTS) is a header that tells browsers: for the next max-age seconds, refuse to load this site over plain HTTP — upgrade every request to HTTPS automatically, even if the visitor types the bare domain or clicks an old http:// link. Without it, the first hop of a visit can be intercepted and downgraded (SSL-stripping) before your HTTPS redirect ever happens. BreachHunter rates missing HSTS MEDIUM, with the largest single header deduction in its table: 4 points.

Run a free BreachHunter assessment on your site →

“But we redirect everything to HTTPS” is the most common reply to this finding — and it misses the attack. A redirect protects the second request. The first request, the plain-HTTP one an attacker on café Wi-Fi can answer before your server does, is where credentials and session cookies get harvested. HSTS exists to delete that first request from the conversation.

This guide covers how the downgrade works in practice, what the scanner's fix text expects (max-age=31536000; includeSubDomains), and the two rollout mistakes — too-short max-age and enabling HSTS before HTTPS works everywhere — that turn a one-line fix into an outage.

How does an SSL-stripping attack use the missing header?

A visitor types your domain without a scheme. The browser's first move, absent HSTS, is an HTTP request on port 80. An attacker sharing the network answers it themselves, opens their own HTTPS connection to your real site, and relays traffic — reading and modifying everything while both sides see a working page. The victim's browser shows no padlock complaint, because as far as it knows it is on an HTTP page the user asked for.

Your server's 301 redirect never fires, because your server never sees the request. That is why “we force HTTPS” and “we send HSTS” are different statements, and why the assessment checks for the header itself rather than the redirect. The scanner's finding text names the attack directly: without Strict-Transport-Security, attackers can downgrade visitors to plain HTTP.

What should the header value be?

The scanner's prescribed fix is Strict-Transport-Security: max-age=31536000; includeSubDomains on every HTTPS response. The max-age of 31,536,000 seconds is one year — long enough that a returning visitor's browser remembers the rule across the realistic gap between visits. Short test values like 300 are for the first afternoon of a rollout, not for production.

includeSubDomains extends the rule to every subdomain, which matters more than it looks: your login may live on the main domain while a forgotten http:// staging subdomain still sets cookies scoped to the parent. The apex module also checks preload readiness separately — a site whose header and HTTPS coverage are clean can be submitted to the browser preload list, which closes even the very first visit. Preload is a one-way door for months, though; treat it as the last step, not the first.

Worked example: casaverderentals.example

Casa Verde Rentals, a vacation-rental agency, had done HTTPS “right” by owner standards: valid certificate, every HTTP page redirecting. Its assessment still scored the HSTS finding at MEDIUM, 4 points, because no response carried the header. The report also flagged the practical exposure: the booking login sat one intercepted first-hop away from guests on hotel Wi-Fi — the exact network rental guests use.

curl -I https://casaverderentals.example/login
HTTP/2 200
content-type: text/html
(strict-transport-security: absent — redirect on :80 does not substitute)

The fix went out in two steps the same week: max-age=300 for one day while the team confirmed every subdomain served HTTPS, then the full max-age=31536000; includeSubDomains value the scanner prescribes. Retest closed the finding, and the agency's report score rose from 78 to 82 — the 4 HSTS points were its single largest header recovery.

The five actions to take

Rolling out HSTS without locking yourself out of your own subdomains:

  1. Confirm every subdomain serves valid HTTPS first — HSTS with includeSubDomains makes HTTP subdomains unreachable, not redirected.
  2. Start with a short max-age (300–3600) for a day and watch for breakage reports.
  3. Raise to max-age=31536000; includeSubDomains on every HTTPS response, including API and error responses.
  4. Verify with curl -I on the homepage, login and one subdomain that the header is present with the final value.
  5. Re-scan to close the finding; consider preload submission only after weeks of clean operation.

Run a free BreachHunter assessment on your site →

Frequently asked questions

We redirect HTTP to HTTPS. Why do we still get this finding?

A redirect answers a request your server receives. SSL-stripping intercepts the request before it reaches your server, so the redirect never happens. HSTS removes the plain-HTTP request entirely for returning visitors, which is why scanners check for the header, not the redirect.

What max-age should HSTS use?

One year — 31536000 seconds — is the production standard and the value in the scanner's fix text. Use a short value only during the first day of rollout while you verify subdomain HTTPS coverage.

Can HSTS break my site?

Only if a subdomain it covers cannot serve HTTPS: browsers will refuse the HTTP fallback outright. That is what includeSubDomains demands you check first. The header itself, on a fully-HTTPS site, breaks nothing.

What is HSTS preloading?

A browser-vendor list of domains that are HTTPS-only from the very first visit, before any header is seen. It closes the first-visit gap, but removal takes months, so it belongs at the end of a proven rollout.

Does HSTS affect SEO?

Indirectly and positively: it keeps every visit on the HTTPS version search engines already prefer, and removes the duplicate-protocol confusion a downgrade path creates. The assessment value is security; the ranking hygiene is a side effect.

Rolling HSTS out without locking yourself out

HSTS is a promise browsers remember, which is why the rollout is gradual on purpose. Start with a short memory: max-age=300 for a day, while you click through the whole site — checkout, account pages, the forgotten subdomain that still serves one HTTP form. If something breaks, the promise expires in five minutes and you have learned cheaply.

Then raise it in steps — a day, a week, a month — watching for the subdomains that were never migrated. Only when the whole estate has lived under a long max-age without incident do you consider the year-long value and the preload list. Preloading is deliberately last: it is the one step you cannot take back quickly, so it is earned by months of boring, correct HTTPS, not declared on day one.

Sources

The references this guide stands on — standards, specifications and official documentation:

  • RFC 6797 (2012) — the HTTP Strict Transport Security specification.
  • HSTS Preload List (2026) — the Chromium-run preload service browsers ship with.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close