node-archiver
node-archiver copied to clipboard
Vulnerability issue
Hi Team,
Do we have plan to fix it.
All versions of archiver allow attacker to perform a Zip Slip attack via the "unarchive" functions. It is exploited using a specially crafted zip archive, that holds path traversal filenames. When exploited, a filename in a malicious archive is concatenated to the target extraction directory, which results in the final path ending up outside of the target folder. For instance, a zip may hold a file with a "../../file.exe" location and thus break out of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
https://nvd.nist.gov/vuln/search/results?form_type=Advanced&results_type=overview&search_type=all&cpe_vendor=cpe%3A%2F%3Aarchiver_project&cpe_product=cpe%3A%2F%3Aarchiver_project%3Aarchiver&cpe_version=cpe%3A%2F%3Aarchiver_project%3Aarchiver%3A5.3.1
That CVE is for another package called Archiver which I think is unrelated to this nodejs package. Not a maintainer of this package, but at a quick glance, it doesn't appear to have native bindings to mholt's archiver package.
With that being said, maybe this package does suffer from same kind of vulnerability, so if one can confirm that it does, perhaps a CVE should be created.