نسخههای متأثر
- نسخههای متأثر
- >= 18.0.0, < 24.0.1
- نسخهٔ اصلاحشده
- 24.0.1
- نسخههای متأثر
- >= 11.0.7, < 13.0.0
- نسخهٔ اصلاحشده
- 13.0.0
npmdirectus
- نسخههای متأثر
- >= 10.10.0, < 11.5.0
- نسخهٔ اصلاحشده
- 11.5.0
بهرهبرداری
شرح آسیبپذیری
Summary
Since the user status is not checked when verifying a session token a suspended user can use the token generated in session auth mode to access the API despite their status.
Details
There is a check missing in verifySessionJWT to verify that a user is actually still active and allowed to access the API. Right now one can extract the session token obtained by, e.g. login in to the app while still active and then, after the user has been suspended continue to use that token until it expires.
PoC
Create an active user
Log in with that user and note the session cookie
Suspend the user (and don't trigger an
/auth/refreshcall, as that invalidates the sessionAccess the API with
Authorization: Bearer <token>
Impact
This weakens the security of suspending users.

