Miggo Logo

CVE-2017-16134: Directory Traversal in http_static_simple

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.67323%
Published
7/23/2018
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
http_static_simplenpm<= 0.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper path handling in the request processing flow. While the exact code isn't available, the advisory indicates the server resolves relative paths without validation. In Node.js static servers, the primary request handler (typically named handleRequest or similar) would be responsible for mapping URL paths to filesystem paths. The high confidence comes from: 1) The vulnerability pattern matches unsafe path.join() operations with user input 2) The attack vector requires no authentication 3) The impact matches unvalidated path resolution behavior 4) This is a fundamental flaw in the core file serving functionality.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*****t** v*rsions o* `*ttp_st*ti*_simpl*` 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*

Reasoning

T** vuln*r**ility st*ms *rom improp*r p*t* **n*lin* in t** r*qu*st pro**ssin* *low. W*il* t** *x**t *o** isn't *v*il**l*, t** **visory in*i**t*s t** s*rv*r r*solv*s r*l*tiv* p*t*s wit*out v*li**tion. In No**.js st*ti* s*rv*rs, t** prim*ry r*qu*st **n