Catalog/CONFIGURATION/cookie-security
SCAN-ID: COOKIE-SECURITYREVISION 2026.4
CONFIGURATIONCVSS 6.0 (MEDIUM)

Cookie Security & Flags Scanner

Verify that all authentication and session cookies enforce HttpOnly, Secure, and SameSite attributes.

Technical Scope & Verification Behavior

Audits Set-Cookie headers for missing Secure flags over HTTPS, missing HttpOnly flags on session tokens, and prefix compliance (__Host- and __Secure-).

Automated Inspection Checks (8)
Passive URL parameter fuzzing
Non-destructive boundary tests
Header & cookie flag assertions
Differential latency timing

Proof of Concept (PoC) Vector

Canonical test payload dispatched during security surface audits.

Set-Cookie: user_auth=abc; Path=/

Probe Execution Simulator

Watch the probe engine test this signature in an isolated sandbox.

probe-runner (isolated ephemeral container)
Click 'Simulate Check' to watch the headless audit engine test this vector.

Remediation Patch

Secure Cookie Attributes

patch.diff (typescript)
--- a/handler.typescript (Vulnerable)
res.cookie('token', token);
+++ b/handler.typescript (Remediated)
res.cookie('token', token, { httpOnly: true, secure: true, sameSite: 'strict', path: '/' });

Add HttpOnly to prevent JavaScript access and Secure to prevent plaintext transmission over HTTP.

AI Agent Prompt (Cursor · Claude · Copilot)

Copy and paste into your editor to refactor this issue automatically.

"Set httpOnly: true, secure: true, and sameSite: 'strict' on all cookies issued by authentication endpoints."

Run Isolated Check

Test your public domain specifically for Cookie Security & Flags Scanner.

100% passive • No server load

Specification Details

CVSS Score
6.0 / 10.0
Severity Level
MEDIUM
Category
CONFIGURATION
Test Vectors
8 automated
Execution SLA
< 2.5 seconds
False Positive Defense
Strict assertion
Related Standards
#Cookies#HttpOnly#Secure#SameSite

Run continuous monitoring for Cookie Security & Flags Scanner

Audit your site across all 41 vectors automatically on every deploy.

Back to Catalog