Miggo Logo

CVE-2022-0528:
Incorrect Authorization in @uppy/companion

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.49492%
Published
3/4/2022
Updated
6/27/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
@uppy/companionnpm< 3.3.13.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from the debug flag enabling TLD validation bypass (require_tld: !debug). This allowed local/internal URLs when debug=true (default in vulnerable versions). The functions validateURL(), meta, and get() in url.js used this flag to weaken security checks, enabling SSRF and internal network probing. The patch replaced debug with allowLocalUrls (default false) and hardened TLD validation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

@uppy/*omp*nion prior to v*rsion *.*.* is vuln*r**l* to in*orr**t *ut*oriz*tion. * us*r wit* URL uplo** ****ss *oul* *num*r*t* int*rn*l *omp*nion s*rv*r n*tworks, s*n* lo**l w**s*rv*rs *il*s to t** **stin*tion s*rv*r, *n* *in*lly *ownlo** t**m I* ***

Reasoning

T** vuln*r**ility st*mm** *rom t** ***u* *l** *n**lin* TL* v*li**tion *yp*ss (r*quir*_tl*: !***u*). T*is *llow** lo**l/int*rn*l URLs w**n ***u*=tru* (****ult in vuln*r**l* v*rsions). T** *un*tions `v*li**t*URL()`, m*t*, *n* `**t()` in `url.js` us** t