CVE-2025-30351
Suspended Directus user can continue to use session token to access API
描述
### 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/refresh` call, as that invalidates the session * Access the API with `Authorization: Bearer <token>` ### Impact This weakens the security of suspending users.
如何修補 CVE-2025-30351
要修補 CVE-2025-30351,請將受影響套件升級到下列已修補版本。
- —升級至 24.0.1 或更新版本
- —升級至 13.0.0 或更新版本
- —升級至 11.5.0 或更新版本
CVE-2025-30351 正在被利用嗎?
低 — EPSS 為 0.3%,目前沒有觀察到大規模利用活動。
受影響套件(3)
- >= 18.0.0, < 24.0.1
- >= 11.0.7, < 13.0.0
- >= 10.10.0, < 11.5.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N |