CVE-2024-34709: Directus Lacks Session Tokens Invalidation

Published May 13, 2024
·
Updated

Summary Currently session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The directussession gets destroyed and the cookie gets deleted but if you captured the cookie value 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. When authenticating a session token JWT, Directus should also check whether the associated directussession both still exists and has not expired (although the token should expire at the same time or before the session) to ensure leaked tokens are not valid indefinitely.

Steps to reproduce - Copy the current session token from the cookie - Refresh and or log out - Use the saved session token to check if it is still valid

Impact The lack of proper session expiration may improve the likely success of certain attacks. For example, a user might access a web site from a shared computer (such as at a library, Internet cafe, or open work environment). Incorrect token invalidation could allow an attacker to use the browser's history to access a Directus instance session previously accessed by the victim.

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. Prior to 10.11.0, session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The directussession 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 vulnerability is fixed in 10.11.0.

MITRE

Affected Software

2 affected componentsFixes available
npm/directus>=10.10.0<10.11.0
10.11.0
Monospace Directus Node.js<10.11.0

Event History

May 13, 2024
CVE Published
via MITRE·07:39 PM
Data Sourced
via MITRE·07:39 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:59 PM
May 14, 2024
Data Sourced
via NVD·03:39 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-34709?

CVE-2024-34709 is considered a high severity vulnerability due to session tokens not being invalidated upon logout.

2

How do I fix CVE-2024-34709?

To fix CVE-2024-34709, ensure you upgrade to Directus version 10.11.0 or later.

3

What type of vulnerability is CVE-2024-34709?

CVE-2024-34709 is related to improper session management, specifically concerning JWT session tokens.

4

Who is affected by CVE-2024-34709?

CVE-2024-34709 affects users of Directus versions between 10.10.0 and 10.11.0.

5

What can happen if CVE-2024-34709 is exploited?

If exploited, CVE-2024-34709 allows attackers to reuse session tokens even after a user has logged out.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203