CVE-2017-16200: Directory Traversal in uv-tj-demo
Summary
CVE-2017-16200: Directory Traversal in uv-tj-demo. Affects uv-tj-demo versions >= 0.0.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The uv-tj-demo package is an npm package used for local development. It provides functionality for resolving relative file paths. However, it is vulnerable to a directory traversal attack, which allows an attacker to access files outside of the intended directory root. This can lead to the disclosure of private files on the vulnerable system.
Vulnerability Detail
The vulnerability in uv-tj-demo arises from its improper handling of relative file paths. By exploiting this vulnerability, a malicious actor can construct a specially crafted request to traverse directories and access files outside of the intended directory root. For example, an attacker can send a GET request with a relative file path that includes multiple '../' sequences to reach sensitive files, such as '/etc/passwd'. This can result in the unauthorized disclosure of private information.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The uv-tj-demo package is vulnerable to a directory traversal attack, which can result in the unauthorized disclosure of sensitive files. It is recommended to use this package only for local development and switch to a different package for production. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for uv-tj-demo →
FAQ
The vulnerability allows an attacker to access files outside of the intended directory root, potentially leading to the disclosure of sensitive information.
No, there is no patch available for this vulnerability in uv-tj-demo.
Yes, this vulnerability can be exploited remotely by sending specially crafted requests to the vulnerable system.
If you are using uv-tj-demo, it is recommended to only use it for local development purposes. For production, consider switching to a different package without this vulnerability.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-m362-87jc-f39v/GHSA-m362-87jc-f39v.json