MEDIUM6.4
GHSA-vm67-7vmg-66vm
Arbitrary Command Injection in portprocesses
Quick fix
GHSA-vm67-7vmg-66vm — portprocesses: upgrade to the fixed version with the command below.
npm install portprocesses@1.0.5Details
### Impact
An Arbitrary Command Injection vulnerability was reported in `portprocesses` impacting versions <= 1.0.4.
### Example (Proof of Concept)
The following example demonstrates the vulnerability and will run `touch success` therefore creating a file named `success`.
```js const portprocesses = require("portprocesses");
portprocesses.killProcess("$(touch success)"); ```
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2021-23348[ADVISORY]
- https://github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1[WEB]
- https://github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23[WEB]
- https://snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536[WEB]