Aller au contenu

HTTP Security Headers

Ce contenu n’est pas encore disponible dans votre langue.

Check IDTitleCVSS 4.0CWEOWASP
headers.cspContent-Security-Policy Header Missing2.6CWE-1021API8:2023
headers.frame_optionsClickjacking Protection Missing2.6CWE-1021API8:2023
headers.content_type_optionsX-Content-Type-Options Header Missing2.6CWE-16API8:2023
headers.referrer_policyReferrer-Policy Header Missing0 (informational)CWE-200API8:2023
headers.permissions_policyPermissions-Policy Header Missing0 (informational)CWE-1021API8:2023
headers.server_bannerServer/X-Powered-By Banner Discloses Software or Version3.1CWE-200API7:2023
headers.cookie_flagsCookie Missing Secure, HttpOnly, or SameSite4.6CWE-1004API8:2023

Tests for the presence of a Content-Security-Policy header.

Remediate: add a Content-Security-Policy restricting script/style/resource sources to what the application actually needs.

Tests for X-Frame-Options or a CSP frame-ancestors directive — either is sufficient.

Remediate: set X-Frame-Options: DENY (or SAMEORIGIN), or Content-Security-Policy: frame-ancestors 'none' (or a specific origin).

Tests for X-Content-Type-Options: nosniff.

Remediate: add X-Content-Type-Options: nosniff to every response.

Tests for the presence of a Referrer-Policy header.

Remediate: add Referrer-Policy: strict-origin-when-cross-origin (or stricter, e.g. no-referrer, depending on what the application needs to share).

Tests for the presence of a Permissions-Policy header.

Remediate: add a Permissions-Policy disabling powerful browser features the application doesn’t use (camera, microphone, geolocation, …).

Checks the Server and X-Powered-By response headers for software (and, worse, version) disclosure.

Remediate: strip or generalize the Server header at the proxy, and remove X-Powered-By entirely.

Checks every Set-Cookie header in the response for the Secure, HttpOnly, and SameSite attributes.

Remediate: set Secure, HttpOnly (unless the cookie must be JS-readable), and an explicit SameSite (Strict or Lax) on every cookie.