Miggo Logo

CVE-2020-25592: SaltStack Salt Improper Validation of eauth credentials and tokens in salt-netapi

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.9806%
Published
5/24/2022
Updated
10/22/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
saltpip< 2015.8.132015.8.13
saltpip>= 2016.3.0, < 2016.3.82016.3.8
saltpip>= 2016.11.0, < 2016.11.102016.11.10
saltpip>= 2017.5.0, < 2017.7.82017.7.8
saltpip>= 2018.2.0, < 2018.3.52018.3.5
saltpip>= 2019.2.0, < 2019.2.72019.2.7
saltpip>= 3000.0, < 3000.53000.5
saltpip>= 3001.0, < 3001.33001.3
saltpip>= 3002.0, < 3002.13002.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper validation of 'eauth' and token parameters in salt-netapi's SSH handling. The SaltSSH class in salt/netapi/rest_cherrypy/app.py is directly responsible for processing SSH requests via the API, where authentication checks were insufficient. The token validation logic in salt.auth.Resolver is also implicated, as the CVE description specifically mentions ACL validation flaws. While the exact function names aren't explicitly listed in the advisory, the salt-netapi component's SSH handling and authentication flow are clearly identified as the vulnerable areas in multiple sources, including SaltStack's own release notes and CVE descriptions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In S*ltSt**k t** s*lt-n*t*pi improp*rly v*li**t*s **ut* *r***nti*ls *n* tok*ns. * us*r **n *yp*ss *ut**nti**tion *n* invok* S*lt SS*.

Reasoning

T** vuln*r**ility st*ms *rom improp*r v*li**tion o* '**ut*' *n* tok*n p*r*m*t*rs in s*lt-n*t*pi's SS* **n*lin*. T** `S*ltSS*` *l*ss in `s*lt/n*t*pi/r*st_***rrypy/*pp.py` is *ir**tly r*sponsi*l* *or pro**ssin* SS* r*qu*sts vi* t** *PI, w**r* *ut**nti*