JWT audience claim is not verified
Argo CD did not check the audience claim in OIDC tokens, so it accepted tokens meant for other services. An attacker with a token issued for a different audience could use it to access Argo CD and gain privileges based on its groups claim.
- Triaged in 2 hours
- Fixed in 17 days
- Paid in 17 days
- Disclosed after 47 days
Summary by the program
JWT audience claim is not verified Severity: Critical
Description Impact 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.
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.
Patches A patch for this vulnerability has been released in the following Argo CD versions:
v2.6.0-rc5 v2.5.8 v2.4.20 v2.3.14
Credits The Argo CD team would like to express their gratitude to Vladimir Pouzanov @farcaller from Indeed, who discovered the issue, reported it confidentially according to our guidelines, and actively worked with the project to provide a remedy. Many thanks to Vladimir!
Full GHSA: https://github.com/argoproj/argo-cd/security/advisories/GHSA-q9hr-j4rf-8fjc
The report
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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the token validation logic checked the signature and issuer but omitted a check that the audience claim matched Argo CD.
Impact
If the OIDC provider also serves other audiences, Argo CD could accept tokens intended for those services and grant privileges based on their groups claim; a stolen token for another audience could also be used to access Argo CD.
What the attacker needed
OIDC provider serves multiple audiences; Attacker has a valid token for another audience
The fix
The vulnerability was fixed in Argo CD versions v2.6.0-rc5, v2.5.8, v2.4.20 and v2.3.14.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you log in with a service like Google, you get a token that says who it is for. Argo CD checked the token was real but not who it was for, so it accepted tokens meant for other apps. Someone with such a token could get into Argo CD.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.