Affected versions
Version ranges need review.
PyPIsentry
- Affected versions
- >=22.1.0 <23.7.2 || =22.1.0 || =22.10.0 || =22.11.0 || =22.12.0 || =22.2.0 || =22.3.0 || =22.4.0 || =22.5.0 || =22.6.0 || =22.7.0 || =22.8.0 || =22.9.0 || =23.1.0 || =23.1.1 || =23.2.0 || =23.3.0 || =23.3.1 || =23.4.0 || =23.5.0 || =23.5.1 || =23.5.2 || =23.6.0 || =23.6.1 || =23.6.2 || =23.7.0 || =23.7.1
- Fixed version
- 23.7.2
PyPIsentry
- Affected versions
- >= 22.1.0, < 23.7.2
- Fixed version
- 23.7.2
Exploitation
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 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.
Links
- https://github.com/advisories/GHSA-9jcq-jf57-c62c
- https://github.com/getsentry/self-hosted/releases/tag/23.7.2
- https://github.com/getsentry/sentry
- https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083
- https://github.com/getsentry/sentry/pull/53850
- https://github.com/getsentry/sentry/releases/tag/23.7.2
- https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c
- https://nvd.nist.gov/vuln/detail/CVE-2023-39349
- https://pypi.org/project/sentry
Credits
- LTiDi2000

