Miggo Logo

CVE-2020-24356: Local Privilege Escalation in cloudflared

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.07686%
Published
5/24/2021
Updated
3/2/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/cloudflare/cloudflaredgo< 0.0.0-20200820025921-9323844ea7730.0.0-20200820025921-9323844ea773

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues: 1) Inclusion of C:\etc\ in the configuration search path on Windows, which isn't secure by default (CWE-427). The commit message explicitly mentions stopping checks on /etc in Windows, indicating this was part of the vulnerable code. 2) Improper handling of log file paths from untrusted configurations, allowing path hijacking. The commit references 'log file protection' as a fix, confirming this was a vulnerable component. While exact function names aren't visible in the provided diff, the CWE mapping and patch context make these functional areas clear vectors.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In `*lou**l*r**` v*rsions < ****.*.* (*orr*spon*in* to *.*.*-**************-************ on pk*.*o.**v) on Win*ows, i* *n **ministr*tor **s st*rt** `*lou**l*r**` *n* s*t it to r*** *on*i*ur*tion *il*s *rom * **rt*in *ir**tory, *n unprivil**** us*r **

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *) In*lusion o* `*:\*t*\` in t** *on*i*ur*tion s**r** p*t* on Win*ows, w*i** isn't s**ur* *y ****ult (*W*-***). T** *ommit m*ss*** *xpli*itly m*ntions stoppin* ****ks on `/*t*` in Win*ows, in*i**tin* t*is