CVE-2017-16157: Directory Traversal in censorify.tanisjr
Summary
CVE-2017-16157: Directory Traversal in censorify.tanisjr. Affects censorify.tanisjr versions < 0.1.4. 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 censorify.tanisjr package is an npm package used for local development. It provides functionality for censoring text by replacing certain words with asterisks. The package is vulnerable to a directory traversal vulnerability, which allows an attacker to access files outside of the intended directory root.
Vulnerability Detail
The vulnerability in censorify.tanisjr arises from the package resolving relative file paths without proper validation. This allows a malicious actor to craft a request that includes additional directory traversal sequences, resulting in the disclosure of private files on the vulnerable system. An example request that exploits this vulnerability is:
GET /../../../etc/passwd HTTP/1.1
host: foo
This vulnerability has a high severity rating and is classified under CWE-22. It was first published on July 23, 2018, and last modified on August 31, 2020.
How To Fix
No fixed version is published for this vulnerability.
Unfortunately, there is no patch available for this vulnerability. It is recommended to use the censorify.tanisjr package only for local development purposes. If the functionality provided by the package is required for production, it is advised to use an alternative package that does not suffer from 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, the best workaround is to avoid using the censorify.tanisjr package in production environments. Instead, consider using a different package that provides similar functionality but does not have the directory traversal vulnerability.
Conclusion
In conclusion, the censorify.tanisjr package is vulnerable to a directory traversal vulnerability that allows an attacker to access files outside of the intended directory root. No patch is available for this vulnerability, so it is recommended to use the package only for local development purposes. If production functionality is required, it is advised to switch to a different package. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for censorify.tanisjr →
FAQ
This 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.
Yes, this vulnerability can be exploited remotely by sending a crafted request to the vulnerable system.
This vulnerability has a high severity rating.
There are no known instances of this vulnerability being exploited in the wild.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.