Miggo Logo

CVE-2023-22482: JWT audience claim is not verified

9.1

CVSS Score
3.1

Basic Information

EPSS Score
0.48146%
Published
1/25/2023
Updated
2/7/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/argoproj/argo-cdgo>= 1.8.2, < 2.3.142.3.14
github.com/argoproj/argo-cdgo>= 2.4.0, < 2.4.202.4.20
github.com/argoproj/argo-cdgo>= 2.5.0, < 2.5.82.5.8
github.com/argoproj/argo-cdgo>= 2.6.0-rc1, < 2.6.0-rc52.6.0-rc5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing audience claim validation in JWT verification. In OIDC flows, token verification should validate both signature and claims (including 'aud'). The 'verifyIDToken' function would typically handle claim validation, and 'NewVerifier' would configure verification parameters. The patch introduced 'allowedAudiences' configuration, indicating these functions previously lacked audience checks. While exact code isn't shown, these are standard components in OIDC implementations and align with the described vulnerability mechanism.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t *ll v*rsions o* *r*o ** st*rtin* wit* v*.*.* *r* vuln*r**l* to *n improp*r *ut*oriz*tion *u* **usin* t** *PI to ****pt **rt*in inv*li* tok*ns. OI** provi**rs in*lu** *n `*u*` (*u*i*n**) *l*im in si*n** tok*ns. T** v*lu* o* t**t *l*im sp*

Reasoning

T** vuln*r**ility st*ms *rom missin* *u*i*n** *l*im `v*li**tion` in JWT v*ri*i**tion. In OI** *lows, tok*n v*ri*i**tion s*oul* `v*li**t*` *ot* si*n*tur* *n* *l*ims (in*lu*in* '*u*'). T** 'v*ri*yI*Tok*n' `*un*tion` woul* typi**lly **n*l* *l*im v*li**t