Miggo Logo

CVE-2022-43759: Privilege escalation in project role template binding (PRTB) and -promoted roles

7.2

CVSS Score
3.1

Basic Information

EPSS Score
0.1443%
Published
1/25/2023
Updated
2/15/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/rancher/ranchergo>= 2.5.0, < 2.5.172.5.17
github.com/rancher/ranchergo>= 2.6.0, < 2.6.102.6.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper privilege management in Rancher's RBAC logic. Key functions identified are those handling PRTB authorization and role template binding reconciliation. The 'authorizePRTBEscalation' function is critical because it governs escalation permissions, and the flaw allows users to bind roles with cluster-level privileges from a project context. The 'reconcileRoleTemplateBindings' function is implicated because it propagates inherited roles without properly restricting access to '-promoted' resources. These functions are central to the described authorization flaw, as they directly interact with PRTBs and role inheritance mechanics.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *n issu* w*s *is*ov*r** in R*n***r v*rsions *rom *.*.* up to *n* in*lu*in* *.*.** *n* *rom *.*.* up to *n* in*lu*in* *.*.*, w**r* *n *ut*oriz*tion lo*i* *l*w *llows privil*** *s**l*tion vi* proj**t rol* t*mpl*t* *in*in* (PRT*) *n* `-promo

Reasoning

T** vuln*r**ility st*ms *rom improp*r privil*** m*n***m*nt in R*n***r's R*** lo*i*. K*y *un*tions i**nti*i** *r* t*os* **n*lin* PRT* *ut*oriz*tion *n* rol* t*mpl*t* *in*in* r**on*ili*tion. T** '*ut*oriz*PRT**s**l*tion' *un*tion is *riti**l ****us* it