In short
- CVE-2024-34708 is a MEDIUM (CVSS 4.9) vulnerability affecting directus (monospace), directus.
- Chance of exploitation in the next 30 days (EPSS): 0.76%, higher than 55.2% of all vulnerabilities.
- Fix: update to 10.11.0 or later.
| Package | Affected versions | Patched versions |
|---|
| directus | < 10.11.0
| 10.11.0
|
| directus npm | < 10.11.0
| 10.11.0
|
Description
Summary
A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the alias functionality on the API.
Normally, these redacted fields will return ********** however if we change the request to ?alias[workaround]=redacted we can instead retrieve the plain text value for the field.
Steps to reproduce
- Set up a simple role with read-access to users.
- Create a new user with the role from the previous step
- Assign a password to the user
The easiest way to confirm this vulnerability is by first visiting /users/me. You should be presented with a redacted JSON-object.
Next, visit /users/me?alias[hash]=password. This time, the returned JSON object will included the raw password hash instead of the redacted value.
Workaround
This can be avoided by removing permission to view the sensitive fields entirely from users or roles that should not be able to see them.
NVD description
Directus is a real-time API and App dashboard for managing SQL database content. A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the `alias` functionality on the API. Normally, these redacted fields will return `**********` however if we change the request to `?alias[workaround]=redacted` we can instead retrieve the plain text value for the field. This can be avoided by removing permission to view the sensitive fields entirely from users or roles that should not be able to see them. This vulnerability is fixed in 10.11.0.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free