GHSA-7QMM-Q394-FMCH
Vulnerability from github – Published: 2021-03-19 21:19 – Updated: 2023-09-05 23:01
VLAI?
Summary
Command Injection in ps-kill
Details
This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.
PoC (provided by reporter):
var ps_kill = require('ps-kill');
ps_kill.kill('$(touch success)', function() {});
Severity ?
9.8 (Critical)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "ps-kill"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2021-23355"
],
"database_specific": {
"cwe_ids": [
"CWE-77"
],
"github_reviewed": true,
"github_reviewed_at": "2021-03-16T22:05:22Z",
"nvd_published_at": "2021-03-15T17:15:00Z",
"severity": "CRITICAL"
},
"details": "This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file. \n\nPoC (provided by reporter): \n```js\nvar ps_kill = require(\u0027ps-kill\u0027);\nps_kill.kill(\u0027$(touch success)\u0027, function() {});\n```",
"id": "GHSA-7qmm-q394-fmch",
"modified": "2023-09-05T23:01:21Z",
"published": "2021-03-19T21:19:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23355"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-JS-PSKILL-1078529"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Command Injection in ps-kill"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…