directus
Affected
- introduced
0, fixed10.8.3(semver)
Fixed versions
10.8.3
Fix
- Fixed version
10.8.3npm install [email protected]
Advisory
Also known as: CVE-2024-27295
Directus has MySQL accent insensitive email matching
Password reset vulnerable to accent confusion
The password reset mechanism of the Directus backend is implemented in a way where combined with (specific, need to double check if i can work around) configuration in MySQL or MariaDB. As such, it allows attackers to receive a password reset email of a victim user, specifically having it arrive at a similar email address as the victim with a one or more characters changed to use accents.
This is due to the fact that by default MySQL/MariaDB are configured for accent-insenstive and case-insensitve comparisons.
MySQL weak comparison:
select 1 from directus_users where '[email protected]' = 'julian@cüre53.de';
This is exploitable due to an error in the API using the supplied email address for sending the reset password mail instead of using the email from the database.
Steps to reproduce:
[email protected]. (possibly just the domain could be enough for an educated guess)cüre53.de can be registered to be able to receive emails.julian@cüre53.de. POST /auth/password/request HTTP/1.1
Host: example.com
[...]
{"email":"julian@cüre53.de"}
[email protected] and will continue to email the password reset link to the provided email address instead of the saved email address.Workarounds
Should be possible with collations but haven't been able to confirm this.
References
High Basis: The source's own band: HIGH
0, fixed 10.8.3 (semver)10.8.3
10.8.3npm 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