CVE-2024-27295: Directus MySQL accent insensitive email matching

Published Mar 1, 2024
·
Updated

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: sql select 1 from directususers where 'julian@cure53.de' = '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:

1. If the attacker knows the email address of the victim user, i.e., julian@cure53.de. (possibly just the domain could be enough for an educated guess) 2. A off-by-one accented domain cüre53.de can be registered to be able to receive emails. 3. With this email the attacker can request a password reset for julian@cüre53.de. http POST /auth/password/request HTTP/1.1 Host: example.com [...] {"email":"julian@cüre53.de"} 4. The supplied email (julian@cüre53.de) gets checked against the database and will match the non-accented email julian@cure53.de and will continue to email the password reset link to the provided email address instead of the saved email address. 5. With this email the attacker can log into the target account and use it for nefarious things

Workarounds Should be possible with collations but haven't been able to confirm this.

References - https://www.monolune.com/articles/what-is-the-utf8mb40900aici-collation/ - https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-sets.html

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. The password reset mechanism of the Directus backend 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-insensitive and case-insensitive comparisons. This vulnerability is fixed in version 10.8.3.

NVD

Affected Software

2 affected componentsFixes available
npm/directus<=10.8.2
10.8.3
Monospace Directus Node.js<10.8.3

Event History

Mar 1, 2024
CVE Published
via MITRE·03:37 PM
Data Sourced
via MITRE·03:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:58 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-27295?

CVE-2024-27295 is a high severity vulnerability affecting the password reset mechanism of the Directus backend.

2

How do I fix CVE-2024-27295?

To fix CVE-2024-27295, upgrade Directus to version 10.8.3 or later.

3

What software is affected by CVE-2024-27295?

CVE-2024-27295 affects Directus versions up to and including 10.8.2.

4

What is the nature of the vulnerability CVE-2024-27295?

CVE-2024-27295 involves accent confusion in the password reset mechanism, allowing potential unauthorized access.

5

Is there a patch available for CVE-2024-27295?

Yes, a patch is available by updating Directus to version 10.8.3 or a later version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203