Site icon API Security Blog

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 Create a user using a SSO provider test@directus.io. Try to log-in using the regular login form (or the API) When using a valid email address | APP | API | | — | — | | | | When using an invalid email address | APP | API | | — | — | | | | Using this differing error it is possible to determine whether a specific email address is present in the Directus instance as an SSO user. 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…Read More

Exit mobile version