Lucene search

K
hackeroneFarcallerH1:1889161
HistoryFeb 28, 2023 - 6:06 p.m.

Internet Bug Bounty: JWT audience claim is not verified

2023-02-2818:06:26
farcaller
hackerone.com
77
internet bug bounty
argo cd
v1.8.2
improper authorization
oidc providers
token validation
audience claim
stolen token
api vulnerability

EPSS

0.001

Percentile

43.2%

All versions of Argo CD starting with v1.8.2 are vulnerable to an improper authorization bug causing the API to accept certain invalid tokens.

OIDC providers include an aud (audience) claim in signed tokens. The value of that claim specifies the intended audience(s) of the token (i.e. the service or services which are meant to accept the token). Argo CD does validate that the token was signed by Argo CD’s configured OIDC provider. But Argo CD does not validate the audience claim, so it will accept tokens that are not intended for Argo CD.

Impact

If Argo CD’s configured OIDC provider also serves other audiences (for example, a file storage service), then Argo CD will accept a token intended for one of those other audiences. Argo CD will grant the user privileges based on the token’s groups claim, even though those groups were not intended to be used by Argo CD.

This bug also increases the blast radius of a stolen token. If an attacker steals a valid token for a different audience, they can use it to access Argo CD.