Module 06 — HTTP Security Headers & Configuration¶
Icon: Shield | Colour: Teal
Overview¶
Inspects HTTP security headers, information disclosure through server banners and error pages, cookie security flags, and TLS configuration.
How It Works¶
- Security header checks — tests seven critical headers across key pages:
Strict-Transport-Security(HSTS)Content-Security-Policy(CSP)X-Frame-OptionsX-Content-Type-OptionsX-XSS-ProtectionReferrer-PolicyPermissions-Policy
- Server banner leakage — checks for
ServerandX-Powered-Byheaders revealing software versions. - Error page probing — requests non-existent paths to check for stack traces or framework information in error responses.
- Cookie flag inspection — checks for
Secure,HttpOnly, andSameSiteattributes on all cookies. - TLS analysis — optional integration with
testssl.shorsslyzefor in-depth TLS configuration testing.
Expected Findings¶
| Finding | Severity |
|---|---|
| No HTTPS | High |
| TLS vulnerability | Critical |
| Missing HSTS header | High |
| Missing or dangerous CSP | Medium |
| Missing X-Frame-Options | Medium |
| Insecure cookie flags | Medium |
| Information disclosure headers | Low |
| Error page disclosure | Low |