Skip to content

Protocol: Cookie Security

Identifier: header_set_cookie

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner ASM Scanner

Description

Cookies not secured with proper flags can be easily intercepted or read by malicious scripts, potentially allowing attackers to hijack sessions or steal sensitive session data.

How we test: We analyze Set-Cookie headers in responses to detect if cookies are missing security flags such as HttpOnly, Secure, or SameSite. We check if cookies are sent over unencrypted connections or are accessible to JavaScript, which could expose them to various attacks.

References:

Configuration

Example

Example configuration:

---
security_tests:
  header_set_cookie:
    skip: false

Reference

skip

Type : boolean

Skip the test if true.