CVE-2017-16034
Pidusage Command Injection Vulnerability
Description
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'); ``` ## Recommendation Update to version 1.1.5 or later.
INFO
Published Date :
Sept. 1, 2020, 4:49 p.m.
Last Modified :
Jan. 9, 2023, 5:04 a.m.
Remotely Exploit :
No
Source :
github-security-advisories
Solution
- Update pidusage to version 1.1.5 or later.
- Sanitize all inputs to child_process.exec().
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-16034.
| URL | Resource |
|---|---|
| https://www.npmjs.com/advisories/356 | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-16034 | |
| https://github.com/advisories/GHSA-hfq9-rfpv-j8r8 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-16034 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-16034
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-16034 vulnerability anywhere in the article.