Miggo Logo

CVE-2024-34709: Directus Lacks Session Tokens Invalidation

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.38516%
Published
5/13/2024
Updated
5/14/2024
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
directusnpm>= 10.10.0, < 10.11.010.11.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing session validation during token verification. The commit adds a new 'verifySessionJWT' check within getAccountabilityForToken, indicating this function was previously incomplete. Before the patch, it only validated JWT cryptographically but didn't verify session state in the database, making it the vulnerable entry point for unrevoked session tokens.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Summ*ry *urr*ntly s*ssion tok*ns *un*tion lik* t** ot**r JWT tok*ns w**r* t**y *r* not **tu*lly inv*li**t** w**n lo**in* out. T** `*ir**tus_s*ssion` **ts **stroy** *n* t** *ooki* **ts **l*t** *ut i* you **ptur** t** *ooki* v*lu* it will still wor

Reasoning

T** vuln*r**ility st*ms *rom missin* s*ssion v*li**tion *urin* tok*n v*ri*i**tion. T** *ommit ***s * n*w 'v*ri*yS*ssionJWT' ****k wit*in `**t***ount**ility*orTok*n`, in*i**tin* t*is `*un*tion` w*s pr*viously in*ompl*t*. ***or* t** p*t**, it only v*li