Lucene search

K
githubGitHub Advisory DatabaseGHSA-9JCQ-JF57-C62C
HistoryAug 08, 2023 - 8:46 p.m.

Privilege escalation via ApiTokensEndpoint

2023-08-0820:46:12
CWE-284
GitHub Advisory Database
github.com
119
privilege escalation
apitokensendpoint
token scopes
exploited
sentry
github
release
self-hosted
rotate tokens

8.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

0.001 Low

EPSS

Percentile

25.3%

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.

Affected configurations

Vulners
Node
sentrysentryRange22.1.0
OR
sentrysentryRange<23.7.2
CPENameOperatorVersion
sentryge22.1.0
sentrylt23.7.2

8.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

0.001 Low

EPSS

Percentile

25.3%

Related for GHSA-9JCQ-JF57-C62C