Miggo Logo

CVE-2022-29810: Insertion of Sensitive Information into Log File in Hashicorp go-getter

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.16088%
Published
4/28/2022
Updated
2/9/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:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/hashicorp/go-gettergo< 1.5.111.5.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the RedactURL() function's incomplete redaction logic prior to the patch. The commit 36b68b2 specifically modifies this function to add query parameter redaction for 'sshkey'. The vulnerability manifests when this function is called to sanitize URLs for logging purposes, particularly in error handling scenarios. The function's pre-patch version only handled password redaction in userinfo portions of URLs but didn't address sensitive query parameters, making it the clear vulnerable entry point.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** **s*i*orp *o-**tt*r li*r*ry ***or* *.*.** *oul* writ* SS* *r***nti*ls into its lo**il*, *xposin* s*nsitiv* *r***nti*ls to lo**l us*rs **l* to r*** t** lo**il*.

Reasoning

T** vuln*r**ility st*ms *rom t** `R****tURL()` *un*tion's in*ompl*t* r****tion lo*i* prior to t** p*t**. T** *ommit ******* sp**i*i**lly mo*i*i*s t*is *un*tion to *** qu*ry p*r*m*t*r r****tion *or 'ss*k*y'. T** vuln*r**ility m*ni**sts w**n t*is *un*t