Skip to content

Security Test: Headers

Description

Default Severity:

Sometimes web apps don’t set security headers correctly, which can open the door for various problems. For example, if cache settings aren’t defined, sensitive data might be stored on a user’s device and potentially seen by others. Not specifying a content type or allowing browsers to guess it can lead to dangerous misinterpretations of data, potentially letting malicious content execute in an unexpected way. Without enforcing HTTPS strictly, connections might be unencrypted, exposing data in transit. Similarly, cookies that lack secure or HttpOnly flags can be intercepted or accessed by scripts, making session theft easier. Also, when servers reveal their version details in response headers, attackers can use this information to target known vulnerabilities. Developers need to be careful not to overlook these headers, as their improper setup can significantly increase a system’s risk profile.

Reference:

Configuration

Identifier: protocol/headers

Examples

All configuration available:

checks:
  protocol/headers:
    skip: false # default

Compliance and Standards

Standard Value
OWASP API Top 10 API2:2023
OWASP LLM Top 10 LLM06:2023
PCI DSS 6.5.10
GDPR Article-32
SOC2 CC6
PSD2 Article-95
ISO 27001 A.14.2
NIST SP800-52
FedRAMP SC-28
CWE 200
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:H/RL:O/RC:C
CVSS Score 5.1