Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade @directus/api
to version 25.0.0 or higher.
@directus/api is a real-time API and App dashboard for managing SQL database content
Affected versions of this package are vulnerable to Operation on a Resource after Expiration or Release due to a missing check in verifySessionJWT
. An attacker can continue to access the API using a session token even after the user has been suspended by using the token obtained prior to suspension.
Note:
This is only exploitable if the /auth/refresh
call is not triggered, as that would invalidate the session token.
Create an active user
Log in with that user and note the session cookie
Suspend the user (and don't trigger an /auth/refresh
call, as that invalidates the session
Access the API with Authorization: Bearer <token>