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.
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.
/auth/refresh
call, as that invalidates the sessionAuthorization: Bearer <token>
This weakens the security of suspending users.
{ "github_reviewed_at": "2025-03-26T18:30:43Z", "nvd_published_at": "2025-03-26T18:15:26Z", "github_reviewed": true, "cwe_ids": [ "CWE-672" ], "severity": "LOW" }