Miggo Logo

CVE-2019-15609:
OS Command Injection and Command Injection in kill-port-process

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.91155%
Published
2/10/2022
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
kill-port-processnpm<= 2.2.02.2.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from using child_process.exec() with unsanitized input in two methods:

  1. win32Kill directly interpolated PID into TASKKILL command
  2. unixKill used raw port value in a shell pipeline Both would appear in runtime profiles when processing malicious input. The patch replaces exec() with spawn() and argument arrays, confirming the original code was vulnerable to command injection via parameter manipulation.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T** kill-port-pro**ss p**k*** v*rsion &lt; *.*.* is vuln*r**l* to * *omm*n* Inj**tion vuln*r**ility.

Reasoning

T** vuln*r**ility st*ms *rom usin* **il*_pro**ss.*x**() wit* uns*nitiz** input in two m*t*o*s: *. win**Kill *ir**tly int*rpol*t** PI* into T*SKKILL *omm*n* *. unixKill us** r*w port v*lu* in * s**ll pip*lin* *ot* woul* *pp**r in runtim* pro*il*s w**n