directus
Affected
- introduced
9.11, fixed10.13.0(ecosystem)
Fixed versions
10.13.0
Fix
- Fixed version
10.13.0npm install [email protected]
Advisory
Also known as: CVE-2024-39896
Directus Allows Single Sign-On User Enumeration
Impact
When relying on SSO providers in combination with local authentication it can be possible to enumerate existing SSO users in the instance. This is possible because if an email address exists in Directus and belongs to a known SSO provider then it will throw a "helpful" error that the user belongs to another provider.
Reproduction
[email protected].| APP | API |
| --- | --- |
| image | image |
| APP | API |
| --- | --- |
| image | image |
Workarounds
When only using SSO for authentication then you can work around this issue by disabling local login using the following environment variable AUTH_DISABLE_DEFAULT="true"
References
Implemented as feature in https://github.com/directus/directus/pull/13184
https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account
High Basis: The source's own band: HIGH
9.11, fixed 10.13.0 (ecosystem)10.13.0
10.13.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0