PT-2024-26122 · Directus · Directus

Elieehel

·

Published

2024-05-13

·

Updated

2025-01-03

·

CVE-2024-34708

CVSS v3.1

4.9

Medium

VectorAV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Directus versions prior to 10.11.0
Description A user with permission to view any collection using redacted hashed fields can access the raw stored version using the alias functionality on the API. Normally, these redacted fields return **********, but by changing the request to ?alias[workaround]=redacted, it is possible to retrieve the plain text value for the field. This issue can be exploited by visiting specific API endpoints, such as /users/me and then /users/me?alias[hash]=password, to obtain the raw password hash instead of the redacted value.
Recommendations For versions prior to 10.11.0, remove permission to view sensitive fields entirely from users or roles that should not be able to see them. This can be done by adjusting the roles and permissions settings in the Directus dashboard to restrict access to sensitive information. As a temporary workaround, consider restricting access to the alias functionality on the API until the issue is resolved by updating to version 10.11.0 or later.

Exploit

Fix

Information Disclosure

Weakness Enumeration

Related Identifiers

CVE-2024-34708
GHSA-P8V3-M643-4XQX

Affected Products

Directus