Headline
GHSA-9jcq-jf57-c62c: Privilege escalation via ApiTokensEndpoint
Impact
An attacker with access to a token with few or no scopes can query /api/0/api-tokens/
for a list of all tokens created by a user, including tokens with greater scopes, and use those tokens in other requests.
There is no evidence that the issue was exploited on https://sentry.io. For self-hosted users, it is advised to rotate user auth tokens via https://your-self-hosted-sentry-installation/settings/account/api/auth-tokens/
.
Patches
The issue was fixed in https://github.com/getsentry/sentry/pull/53850 and is available in the release 23.7.2 of sentry and self-hosted.
Workarounds
There are no known workarounds.
Package
pip sentry (pip)
Affected versions
>= 22.1.0, < 23.7.2
Patched versions
23.7.2
Description
Impact
An attacker with access to a token with few or no scopes can query /api/0/api-tokens/ for a list of all tokens created by a user, including tokens with greater scopes, and use those tokens in other requests.
There is no evidence that the issue was exploited on https://sentry.io. For self-hosted users, it is advised to rotate user auth tokens via https://your-self-hosted-sentry-installation/settings/account/api/auth-tokens/.
Patches
The issue was fixed in getsentry/sentry#53850 and is available in the release 23.7.2 of sentry and self-hosted.
Workarounds
There are no known workarounds.
References
- GHSA-9jcq-jf57-c62c
- https://nvd.nist.gov/vuln/detail/CVE-2023-39349
- getsentry/sentry#53850
- getsentry/sentry@fad12c1
- https://github.com/getsentry/self-hosted/releases/tag/23.7.2
- https://github.com/getsentry/sentry/releases/tag/23.7.2
oioki published to getsentry/sentry
Aug 7, 2023
Published to the GitHub Advisory Database
Aug 8, 2023
Reviewed
Aug 8, 2023
Last updated
Aug 8, 2023