pentesting, updated

Test HTTP Strict Transport Security

Confirm the HSTS header is present, with a sane max-age, so browsers never fall back to plain HTTP.

Goal

Verify the app forces HTTPS at the browser level, closing the window for SSL-stripping attacks.

How to test

curl -sI https://example.com | grep -i strict-transport-security

Expect something close to:

Strict-Transport-Security: max-age=31536000; includeSubdomains; preload

What to look for

Header missing entirely, a max-age that’s too low (e.g. under a day), or includeSubdomains missing when subdomains also serve sensitive content.

Notes

Also confirm plain HTTP actually redirects to HTTPS — HSTS only protects browsers that already know to expect HTTPS (or are on the preload list).

References

§ home
~/knubertus/home/
1,1 Top