Miggo Logo

CVE-2022-24768: Improper access control allows admin privilege escalation in Argo CD

10

CVSS Score
3.1

Basic Information

EPSS Score
0.58396%
Published
3/24/2022
Updated
6/27/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/argoproj/argo-cdgo>= 0.5.0, < 2.1.142.1.14
github.com/argoproj/argo-cdgo>= 2.2.0, < 2.2.82.2.8
github.com/argoproj/argo-cdgo>= 2.3.0, < 2.3.22.3.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from three key issues: 1) Resource hierarchy traversal (IterateHierarchy) without proper project resource allow-list checks, 2) Incomplete permission validation in IsLiveResourcePermitted that didn't consider destination restrictions, and 3) Insufficient resource ownership validation in getAppResource. The commit patches show these functions were modified to add project restriction checks (IsResourcePermitted), UID validation, and destination verification. The CWE-862 (Missing Authorization) mapping confirms these authorization flaws in resource access control functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t #### Imp**ts *or v*rsions st*rtin* wit* v*.*.* *ll unp*t**** v*rsions o* *r*o ** st*rtin* wit* v*.*.* *r* vuln*r**l* to *n improp*r ****ss *ontrol *u*, *llowin* * m*li*ious us*r to pot*nti*lly *s**l*t* t**ir privil***s to **min-l*v*l. T

Reasoning

T** vuln*r**ility st*mm** *rom t*r** k*y issu*s: *) R*sour** *i*r*r**y tr*v*rs*l (It*r*t**i*r*r**y) wit*out prop*r proj**t r*sour** *llow-list ****ks, *) In*ompl*t* p*rmission v*li**tion in `IsLiv*R*sour**P*rmitt**` t**t *i*n't *onsi**r **stin*tion r