Snyk has a published code exploit for this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid usage of this package altogether.
getcookies
contains a malicious backdoor.
The backdoor works by parsing the user-supplied HTTP request.headers
, looking for specifically formatted data that provides three different commands to the backdoor:
vm.runInThisContext
, providing module.exports
, required
, req
, res
, and next
as arguments.These control codes allowed for an attacker to input arbitrary code into a running server and execute it.
The list of packages and their scripts are:
express-cookies
getcookies
http-fetch-cookies