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 Shell Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade git-ls-remote
to version 0.2.0 or higher.
git-ls-remote
is an npm package used for listing references in a remote git repository.
Vulnerable versions of the package pass the git url
argument to the exec
function without sanitisation. An attacker can use this to inject malicious shell commands to disrupt server operation or obtain sensitive information.
var git = require('git-ls-remote');
git.head('https://gitrepo.com/; cat /etc/passwd', function(err, result) {
// ...
});