git-tags-remote
Affected
- introduced
0, fixed1.0.4(semver)
Fixed versions
1.0.4
Fix
- Fixed version
1.0.4npm install [email protected]
Advisory
Also known as: None
Command Injection in git-tags-remote
All versions of git-tags-remote 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.
The following proof-of-concept creates a file in /tmp:
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));High Basis: The source's own band: HIGH
0, fixed 1.0.4 (semver)1.0.4
1.0.4npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0