The cookie can be read by scripts (no HttpOnly attribute).
COOKIE_NO_HTTPONLY · Severity: Info
- Info
COOKIE_NO_HTTPONLYThe cookie can be read by scripts (no HttpOnly attribute).
Without HttpOnly, JavaScript on the page can read the cookie, so an injected script can steal it. That is fine for cookies the page's own scripts need, but not for session cookies.
Recommendation: Add HttpOnly to session and authentication cookies.
Reported by
Available through the API
Related findings
- Info
COOKIE_NO_SAMESITEThe cookie has no SameSite attribute. - Warning
COOKIE_NO_SECUREThe cookie has no Secure attribute. - Warning
COOKIE_NOT_SECUREThe HTTPS site sets a cookie without the Secure attribute. - Error
COOKIE_INVALIDThe Set-Cookie value has no valid name=value pair. - Info
COOKIE_LONG_LIFETIMEThe cookie asks to live longer than the 400 days browsers allow. - Info
COOKIE_MULTIPLEThe text holds more than one cookie; only the first was checked.