GitHub Advisoryadvisory · npm

GHSA-7x92-2j68-h32c Directory Traversal in featurebook

MEDIUM Published 2020-09-01 Modified 2020-08-31 Official page ↗
Ecosystem
npm
Packages
featurebook
Severity
Moderate
Weaknesses
CWE-22
Reviewed
2020-08-31

Affected packages

• npm featurebook: all versions (no fix yet)

Description

Affected versions of `featurebook` resolve relative file paths, resulting in a directory traversal vulnerability. A malicious actor can use this vulnerability to access files outside of the intended directory root, which may result in the disclosure of private files on the vulnerable system. The `featurebook` package is not intended to be run in production code nor to be exposed to an untrusted network. Proof of Concept ``` GET /../../../../../../../../../../etc/passwd HTTP/1.1 host:foo ``` Recommendation No direct patch is currently available. At this time, the best mitigation is to ensure that `featurebook` is not running in production or exposed to an untrusted network.

Related

Weakness · CWE (1)

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

References