HTTP cookie flag checker

Session cookies set without proper attributes risk cleartext interception, XSS exfiltration, or CSRF submission. The scanner parses every Set-Cookie header returned across crawled routes.

Cookie checks and severity rules

Rule IDCondition detectedFix
COOKIE-NO-SECURECookie issued over HTTPS without the Secure attributeAdd Secure so browsers never transmit the cookie over HTTP.
COOKIE-NO-HTTPONLYSession-like cookie readable by document.cookieAdd HttpOnly unless client JavaScript explicitly needs to read it.
COOKIE-SAMESITE-NONE-INSECURESameSite=None set without SecureModern browsers reject or downgrade insecure SameSite=None cookies.
COOKIE-NO-SAMESITECookie omits SameSite attributeSet SameSite=Lax or SameSite=Strict to limit CSRF exposure.

Check login flows and authenticated pages

web-vuln-scanner https://app.example.com --max-pages 15 --view security
web-vuln-scanner https://app.example.com -H "Cookie: session=$SESSION" --auth-context signed-in

The audit also pairs cookie checks with Cache-Control: no-store checks so authenticated pages are not cached by shared proxies.

Frequently asked questions

Should non-session preference cookies use HttpOnly?

UI preference cookies read by frontend scripts cannot use HttpOnly. The scanner weights HttpOnly severity specifically on session and auth-named cookies.

What SameSite mode works best for login cookies?

SameSite=Lax blocks cross-site POST requests while still allowing top-level GET links back into the application. Use Strict for admin portals when external deep links do not need session state.

Related guides

OWASP security headers checker

Check Cache-Control, HSTS, and framing headers on the same routes.

CORS misconfiguration scanner

Cross-origin requests interact directly with SameSite=None cookies.

Frontend secret leak detector

Check whether session tokens or JWT claims leak in HTML or JS responses.