pidusage
Affected
- introduced
0, fixed1.1.5(semver)
Fixed versions
1.1.5
Fix
- Fixed version
1.1.5npm install [email protected]
Advisory
Also known as: CVE-2017-1000220
PIDUsage Enables OS Command Injection
Overview
Affected versions of pidusage pass unsanitized input to child_process.exec(), resulting in arbitrary code execution in the ps method.
This package is vulnerable to this PoC on Darwin, SunOS, FreeBSD, and AIX.
Windows and Linux are not vulnerable.
Proof of Concept
var pid = require('pidusage');
pid.stat('1 && /usr/local/bin/python');
Remediation
Update to version 1.1.5 or later.
Critical Basis: The source's own band: CRITICAL
0, fixed 1.1.5 (semver)1.1.5
1.1.5npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0