CVE-2017-16029 Directory Traversal in hostr
An attacker can read arbitrary files outside the served directory by manipulating URL paths in the hostr Node.js module.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-16029?
CVE-2017-16029 is a high-severity path traversal vulnerability in HackerOne hostr node module, published on 4 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2017-16029?
2 open source packages ship an affected version, including hostr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hostr npm | All versions | 2.3.6 |
hostr npm | All versions | 2.3.6 |
Products include Hostr Project Hostr.
How do I fix CVE-2017-16029?
Upgrade hostr to 2.3.6 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2017-16029 being exploited?
There is no known exploitation of CVE-2017-16029 in the wild and no public exploit code.
Sources
Also known as GHSA-xqqr-p362-6rmc.