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-tags-remote
to version 1.0.3 or higher.
git-tags-remote is a Get remote repository tags.
Affected versions of this package are vulnerable to Command Injection. The package fails to sanitize the repository input and passes it directly to an exec
call on the get
function . This may allow attackers to execute arbitrary code in the system if the repo
value passed to the function is user-controlled.
const gitTagsRemote = require('git-tags-remote');
gitTagsRemote.get('https://github.com/sh0ji/git-tags-remote.git; echo "Injection Success" > /tmp/command-injection.test') .then(tags => console.log(tags));