logo

CVE-2024-34708 directus

Package

Manager: npm
Name: directus
Vulnerable Version: >=0 <10.11.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00343 pctl0.56242

Details

Directus allows redacted data extraction on the API through "alias" ## 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.

Metadata

Created: 2024-05-13T19:40:08Z
Modified: 2024-05-14T20:04:22Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-p8v3-m643-4xqx/GHSA-p8v3-m643-4xqx.json
CWE IDs: ["CWE-200"]
Alternative ID: GHSA-p8v3-m643-4xqx
Finding: F038
Auto approve: 1