PT-2023-31979 · Drupal · Drupal Json:Api Module

CVE-2023-5256

·

Published

2023-09-20

·

Updated

2024-09-23

CVSS v3.1

7.5

High

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Drupal JSON:API module (affected versions not specified)
Description In certain scenarios, Drupal's JSON:API module will output error backtraces, potentially causing sensitive information to be cached and made available to anonymous users, leading to privilege escalation. This issue can be exploited by causing a 4xx response when an administrator visits a crafted URL on the JSON:API, allowing an attacker to cache an administrator's session cookies. For example, this can be done using the API endpoint "/jsonapi/user/user" with a specific filter, such as filter[a-labex][condition][path]=cachingyourcookie. The core REST and contributed GraphQL modules are not affected.
Recommendations To mitigate this issue, consider uninstalling the JSON:API module until a patch is available. As a temporary workaround, restrict access to the JSON:API module to minimize the risk of exploitation. Avoid using the JSON:API module with configurations that may cause sensitive information to be cached and made available to anonymous users.

Exploit

Fix

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BIT-DRUPAL-2023-5256
CVE-2023-5256
DRUPAL-CORE-2023-006
GHSA-RJQG-3H9M-FX5X

Affected Products

Drupal Json:Api Module