CVE-2024-45596 Directus's session is cached for OpenID and OAuth2 if `redirect` is not used
MediumCVSS 6.5
EPSS 0.66%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Directus is a real-time API and App dashboard for managing SQL database content. An unauthenticated user can access credentials of last authenticated user via OpenID or OAuth2 where the authentication URL did not include redirect query string. This happens because on that endpoint for both OpenId and Oauth2 Directus is using the respond middleware, which by default will try to cache GET requests that met some conditions. Although, those conditions do not include this scenario, when an unauthenticated request returns user credentials. This vulnerability is fixed in 10.13.3 and 11.1.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm directus(npm) | < 10.13.3 | 10.13.3 |
| npm directus(npm) | >= 11.0.0-rc.1, < 11.1.0 | 11.1.0 |
| directus @directus/api(npm) | < 21.0.1 | 21.0.1 |
| directus @directus/api(npm) | >= 22.0.0, < 22.2.0 | 22.2.0 |
| directus | = < 10.13.3 | No fix listed |
| directus | = >= 11.0.0, < 11.1.0 | No fix listed |
| monospace directus | < 10.13.3 | 10.13.3 |
| monospace directus | >= 11.0.0, < 11.1.0 | 11.1.0 |
References
- https://github.com/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8 exploit vendor-advisory
- https://github.com/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91b patch
- https://github.com/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52 patch
- github.com
- github.com
- nvd.nist.gov third-party-advisory
- github.com