Miggo Logo

CVE-2020-8553:
ingress-nginx component for Kubernetes allows file overwrite

5.9

CVSS Score
3.1

Basic Information

EPSS Score
0.53884%
Published
5/24/2022
Updated
8/22/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
k8s.io/ingress-nginxgo< 0.28.00.28.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from how ingress-nginx constructs filenames for basic auth secrets. The system combines namespace and secret names to create file paths without sufficient sanitization. When either contains hyphens, an attacker can craft malicious namespace/secret combinations that resolve to the same file path as another ingress' auth file. The createAuthFile function (or equivalent) would be directly responsible for this insecure path construction, matching CWE-73 (path control) and CWE-610 (cross-sphere reference). While exact code isn't available, the vulnerability pattern and ingress-nginx architecture strongly indicate this as the vulnerable component.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** Ku**rn*t*s in*r*ss-n*inx *ompon*nt prior to v*rsion *.**.* *llows * us*r wit* t** **ility to *r**t* n*m*sp***s *n* to r*** *n* *r**t* in*r*ss o*j**ts to ov*rwrit* t** p*sswor* *il* o* *not**r in*r*ss w*i** us*s n*inx.in*r*ss.ku**rn*t*s.io/*ut*-ty

Reasoning

T** vuln*r**ility st*ms *rom *ow in*r*ss-n*inx *onstru*ts *il*n*m*s *or **si* *ut* s**r*ts. T** syst*m *om*in*s n*m*sp*** *n* s**r*t n*m*s to *r**t* *il* p*t*s wit*out su**i*i*nt s*nitiz*tion. W**n *it**r *ont*ins *yp**ns, *n *tt**k*r **n *r**t m*li*