CVE-2017-16121: Directory Traversal in datachannel-client
Summary
CVE-2017-16121: Directory Traversal in datachannel-client. Affects datachannel-client versions < 1.0.2. 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 datachannel-client 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 a malicious actor 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 datachannel-client arises from its resolution of relative file paths. By exploiting this vulnerability, an attacker can craft a request that includes a path traversal sequence, such as '../', to access files outside of the intended directory root. For example, an attacker could send a GET request to access the '/etc/passwd' file on the system. This can result in the disclosure of sensitive 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
As there is no patch available, a workaround for this vulnerability is to avoid using the datachannel-client package in production environments. Instead, consider using an alternative package that provides similar functionality but does not suffer from the directory traversal vulnerability.
Conclusion
The datachannel-client package is vulnerable to a directory traversal attack, which can lead to the disclosure of sensitive files on the system. Unfortunately, there is no patch available for this vulnerability. It is recommended to only use this package for local development purposes and switch to a different package for production environments. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for datachannel-client →
FAQ
The impact of this vulnerability is that an attacker can access sensitive files on the system, potentially leading to the disclosure of private information.
No, there is no patch available for this vulnerability in the datachannel-client package.
Yes, this vulnerability can be exploited remotely by sending crafted requests to the vulnerable system.
If you are using the datachannel-client package, it is recommended to only use it for local development purposes. For production environments, switch to a different package that does not have this vulnerability.
The only known mitigation for this vulnerability is to avoid using the datachannel-client package in production environments.