Miggo Logo

CVE-2017-16101: Directory Traversal in serverwg

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.67352%
Published
9/1/2020
Updated
9/7/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
serverwgnpm>= 0.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

While the exact code isn't available, the vulnerability pattern strongly indicates: 1) A file-serving function directly uses unsanitized URL paths 2) Absence of path normalization (via methods like path.resolve() in Node.js) 3) Lack of containment checks to prevent escaping the web root. This is a classic directory traversal vulnerability pattern in simple HTTP servers that map URLs directly to filesystem paths without proper sanitization.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

`s*rv*rw*` is * simpl* *ttp s*rv*r. `s*rv*rw*` is vuln*r**l* to * *ir**tory tr*v*rs*l issu*, *ivin* *n *tt**k*r ****ss to t** *il*syst*m *y pl**in* "../" in t** URL. ***x*mpl* r*qu*st:** ```*ttp **T /../../../../../../../../../../*t*/p*ssw* *TTP/*.

Reasoning

W*il* t** *x**t *o** isn't *v*il**l*, t** vuln*r**ility p*tt*rn stron*ly in*i**t*s: *) * *il*-s*rvin* `*un*tion` *ir**tly us*s uns*nitiz** URL p*t*s *) **s*n** o* p*t* norm*liz*tion (vi* m*t*o*s lik* `p*t*.r*solv*()` in `No**.js`) *) L**k o* *ont*inm