Skip to main content

Insufficient Session Expiration

CVE-2024-34709

Severity Medium
Score 5.4/10

Summary

Directus is a real-time API and App dashboard for managing SQL database content. In directus versions 10.10.0 through 10.10.7, session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The `directus_session` gets destroyed and the cookie gets deleted but if the cookie value is captured, it will still work for the entire expiry time which is set to 1 day by default. Making it effectively a long lived unrevokable stateless token instead of the stateful session token it was meant to be. This issue affects @directus/api versions 18.0.0 through 19.0.2.

  • HIGH
  • NETWORK
  • LOW
  • UNCHANGED
  • REQUIRED
  • LOW
  • HIGH
  • NONE

CWE-613 - Insufficient Session Expiration

According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."

Advisory Timeline

  • Published