Insecure Cookies

Insecure Cookies

Knowledge Base>Insecure Cookies

Summary

Insecure Cookies describes use of insecure authentication-related cookies.

Testing methodology

Remove Cookies One by OneMissing HTTPOnlyMissing SecureMissing Same-SiteEnumerate Identifiable ValueCheck for EncodingUnderstand All Stored ValuesCheck if Session is Time LimitedLogout and Check if the Cookie can be ReusedCheck if Value is Not EncryptedTamper with Tenant-Related ValuesTamper with Role-Related Values
Collect All Cookies
Session Cookie Identified
Insecure Cookie Detected
Guessable Cookie Value
Exposed PII in Cookie
Misconfiguration Revocation
Privilege Escalation
Lateral
Vertical

Description

Insecure Cookies describes a situation in which the application stores important values (usually the user's Session ID) inside the browser's cookie storage, and does not set the recommended cookie security flags to protect it.

Remediations

  • Set the HTTPOnly cookie attribute for important cookies
  • Set the Secure cookie attribute for important cookies
  • Set the SameSite cookie attribute to Strict, or at least Lax for important cookies

By using this site you agree to our Terms of Service and Privacy Policy.