Command Injection

Affecting find-process package, versions <1.4.5

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

Overview

find-process is a find process info by port/pid/name etc.

Affected versions of this package are vulnerable to Command Injection. When getting the information by PID and port number, the user needs to inform a value, which is used in a concatenation of an OS command. There is no user input check to know if the PID or the port is a number, as such, an attacker may send a malicious string that will be interpreted as an OS command.

Remediation

Upgrade find-process to version 1.4.5 or higher.

References

CVSS Score

7.3
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:O/RC:R
Credit
Unknown
CWE
CWE-78
Snyk ID
SNYK-JS-FINDPROCESS-1090284
Disclosed
01 Apr, 2021
Published
25 Jun, 2021