Miggo Logo

CVE-2022-32210: ProxyAgent vulnerable to MITM

7.7

CVSS Score
3.1

Basic Information

EPSS Score
0.35902%
Published
6/17/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
undicinpm>= 4.8.2, <= 5.5.05.5.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from ProxyAgent's failure to implement certificate validation during TLS handshakes with the target server when using a proxy. The dispatch function orchestrates proxy communication but does not enforce secure TLS parameters. The createConnection function (or equivalent TLS setup logic) likely omits 'rejectUnauthorized' checks and proper SNI configuration, enabling unverified MITM proxying. These functions are core to the agent's proxy handling, aligning with the described MITM behavior and CWE-295.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### **s*ription `Un*i*i.Proxy***nt` n*v*r v*ri*i*s t** r*mot* s*rv*r's **rti*i**t*, *n* *lw*ys *xpos*s *ll r*qu*st & r*spons* **t* to t** proxy. T*is un*xp**t**ly m**ns t**t proxi*s **n MitM *ll *TTPS tr***i*, *n* i* t** proxy's URL is *TTP t**n it

Reasoning

T** vuln*r**ility st*ms *rom Proxy***nt's **ilur* to impl*m*nt **rti*i**t* v*li**tion *urin* TLS **n*s**k*s wit* t** t*r**t s*rv*r w**n usin* * proxy. T** `*isp*t**` *un*tion or***str*t*s proxy *ommuni**tion *ut *o*s not *n*or** s**ur* TLS p*r*m*t*rs