CVE-2017-16102: Directory Traversal in serverhuwenhui
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.67352%
CWE
Published
9/1/2020
Updated
9/13/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
serverhuwenhui | npm | >= 0.0.0 |
Vulnerability Intelligence
Miggo AI
Root 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.