Description
hostr is a simple web server that serves up the contents of the current directory. There is a directory traversal vulnerability in hostr 2.3.5 and earlier that allows an attacker to read files outside the current directory by sending `../` in the url path for GET requests.
Remediation
References
https://github.com/henrytseng/hostr/issues/8
https://nodesecurity.io/advisories/303
Related Vulnerabilities
CVE-2021-23387 Vulnerability in npm package trailing-slash
CVE-2017-2606 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2021-21266 Vulnerability in maven package org.openhab.addons.bundles:org.openhab.binding.enigma2
CVE-2023-40351 Vulnerability in maven package org.jenkins-ci.plugins:favorite-view
CVE-2022-39368 Vulnerability in maven package org.eclipse.californium:element-connector