Miggo Logo

CVE-2017-16102: Directory Traversal in serverhuwenhui

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.67352%
Published
9/1/2020
Updated
9/13/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
serverhuwenhuinpm>= 0.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability fundamentally stems from improper path sanitization when handling user-controlled input (URL paths). While the exact code isn't available, the pattern matches classic path traversal vulnerabilities where: 1) The request handler directly uses req.url without sanitization 2) Path resolution functions (like path.join()) combine user input with base directories without preventing parent directory escapes 3) File system operations (fs.readFile()) are called with untrusted paths. These two functional areas must exist in any HTTP file server implementation and would be the logical points of failure given the described vulnerability.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*****t** v*rsions o* `s*rv*r*uw*n*ui` r*solv* r*l*tiv* *il* p*t*s, r*sultin* in * *ir**tory tr*v*rs*l vuln*r**ility. * m*li*ious **tor **n us* t*is vuln*r**ility to ****ss *il*s outsi** o* t** int*n*** *ir**tory root, w*i** m*y r*sult in t** *is*losu

Reasoning

T** vuln*r**ility *un**m*nt*lly st*ms *rom improp*r p*t* s*nitiz*tion w**n **n*lin* us*r-*ontroll** input (URL p*t*s). W*il* t** *x**t *o** isn't *v*il**l*, t** p*tt*rn m*t***s *l*ssi* p*t* tr*v*rs*l vuln*r**iliti*s w**r*: *) T** r*qu*st **n*l*r *ir*