CS FundamentalsHardProduct-company placement · security

A bank sends Strict-Transport-Security: max-age=31536000 and is not on any browser's HSTS preload list. Which statement is correct?

  1. A. It protects even the first visit, because the browser reads the header before any TLS handshake
  2. B. After one HTTPS visit the browser upgrades later http:// requests itself; a first HTTP visit can still be stripped
  3. C. It lets the browser accept the site's self-signed or expired certificates without warning for a year
  4. D. It forces the server to redirect every HTTP request, which by itself defeats SSL-stripping attacks

Correct answer: B. After one HTTPS visit the browser upgrades later http:// requests itself; a first HTTP visit can still be stripped

HSTS is remembered from a response received over HTTPS; afterwards the browser never makes plain HTTP requests to the host and refuses certificate click-through. A first visit before any HSTS response is the gap that preload lists close.

More Computer Networks questions

Exams that ask this topic