logo

Database

Http Cookie Missing Cache Control

Description

This detector identifies when sensitive cookies are set without proper cache control directives. When sensitive cookies lack cache control protection, they may be stored in browser caches or intermediate proxies, potentially exposing sensitive session data to unauthorized access.

Weakness:

136 - Insecure or unset HTTP headers - Cache Control

Category: Protocol Manipulation

Detection Strategy

    • A vulnerability is reported when the HTTP response contains Set-Cookie headers for sensitive cookies (like session cookies, authentication tokens) AND the response lacks proper Cache-Control directives

    • The detector considers the response safe only when its Cache-Control directives include 'no-store'; 'no-cache' or 'private' alone do not prevent the report

    • Each sensitive cookie without adequate cache protection generates a separate vulnerability report identifying the specific cookie name and its raw header content