CVE-2018-3733: Path Traversal in crud-file-server
Summary
CVE-2018-3733: Path Traversal in crud-file-server. Affects crud-file-server versions < 0.9.0. Fixed in 0.9.0. 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 crud-file-server is an npm package that provides a server for CRUD operations on files. It allows users to create, read, update, and delete files through HTTP requests. The package is widely used for building file management systems and APIs. However, versions prior to 0.9.0 are vulnerable to a Path Traversal attack.
Vulnerability Detail
The vulnerability in crud-file-server arises from the package's failure to properly sanitize URLs. This allows attackers to access server files outside of the served folder by using relative paths. By exploiting this vulnerability, an attacker can potentially gain unauthorized access to sensitive files on the server. The impact of this vulnerability is rated as HIGH with a CVSS score of 7.5.
How To Fix
Minimum fixed version
0.9.0
This is the first release that contains the fix.
npm install crud-file-server@0.9.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
In conclusion, the crud-file-server package prior to version 0.9.0 is vulnerable to a Path Traversal attack. This can lead to unauthorized access to server files outside of the served folder. To mitigate this vulnerability, it is recommended to upgrade to version 0.9.0 or later. For additional support, contact DevNack.com.
See every vulnerability recorded for crud-file-server →
FAQ
The impact of this vulnerability is rated as HIGH, as it allows attackers to access server files outside of the served folder, potentially exposing sensitive information.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
No, there are no known workarounds for this vulnerability. It is recommended to upgrade to the latest version of crud-file-server to fix the issue.
Exploit code for this vulnerability is not provided in the advisory. However, it is a well-known vulnerability and attackers may have developed their own exploit code. It is crucial to update to the latest version to mitigate the risk.
For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in fixing the vulnerability in your application.
Related vulnerabilities
Recent vulnerabilities recorded for crud-file-server.