PT-2023-9596 · Sentry+1 · Sentry Sdk+1

Tom Wolters

·

Published

2023-01-20

·

Updated

2024-10-22

·

CVE-2023-28117

CVSS v3.1

7.6

High

VectorAV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions Sentry SDK versions prior to 1.14.0
Description The issue is related to the leakage of sensitive cookie values, including session cookies, to Sentry when using the Django integration of the Sentry SDK in a specific configuration. This can occur when the Sentry SDK configuration has sendDefaultPII set to True, a custom name is used for either SESSION COOKIE NAME or CSRF COOKIE NAME in Django settings, and data scrubbing features are not configured to account for the custom cookie names. The leaked cookies could be used by someone with access to Sentry issues to impersonate or escalate privileges within the application.
Recommendations For versions prior to 1.14.0, use the SDK's filtering mechanism to remove cookies from the payload sent to Sentry. For error events, use the before send callback method, and for performance-related events (transactions), use the before send transaction callback method. Alternatively, use Sentry's advanced data scrubbing feature to account for custom cookie names by targeting the $http.cookies, $http.headers, $request.cookies, or $request.headers fields with a scrubbing rule. As of version 1.14.0, the Django integration of the sentry-sdk will detect custom cookie names based on Django settings and remove the values from the payload before sending the data to Sentry.

Exploit

Fix

Generation of Error Message Containing Sensitive Information

Weakness Enumeration

Related Identifiers

BDU:2024-08616
CVE-2023-28117
GHSA-29PR-6JR8-Q5JM

Affected Products

Red Os
Sentry Sdk