🎄 Join our Annual Holiday wargame and win prizes!


Session Cookie with No maxAge

Without `Max-Age` a session cookie can remain in the browser for a pro-long time. This increases risk of session hijack.

Remediation

Specify `Max-Age` and set it to a shorted span of time a cookie should remain in the browser.

Metadata

  • Severity: informational
  • Slug: session-cookie-with-no-maxage

CWEs

  • 613: Insufficient Session Expiration

OWASP

  • A02:2021: Cryptographic Failures

Available Labs

Select a language to explore available labs for this vulnerability.

Deco line
Deco line

Play AppSec WarGames

Want to skill-up in secure coding and AppSec? Try SecDim Wargames to learn how to find, hack and fix security vulnerabilities inspired by real-world incidents.

Deco line
Deco line

Got a comment?

Join our secure coding and AppSec community. A discussion board to share and discuss all aspects of secure programming, AppSec, DevSecOps, fuzzing, cloudsec, AIsec code review, and more.

Read more