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.
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.
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_published_at": "2024-05-14T15:39:31Z", "cwe_ids": [ "CWE-200" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2024-05-13T19:40:08Z" }