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

exploitDog

github логотип

GHSA-753c-phhg-cj29

Опубликовано: 12 мар. 2021
Источник: github
Github: Прошло ревью

Описание

Madge vulnerable to command injection

This affects the package madge before 4.0.1. It is possible to specify a custom Graphviz path via the graphVizPath option parameter which, when the .image(), .svg() or .dot() functions are called, is executed by the childprocess.exec function.

PoC

const madge = require('madge'); madge('..', {graphVizPath: "touch HELLO;"}) .then((res) => res.svg()) .then((writtenImagePath) => { console.log('Image written to ' + writtenImagePath); });

Пакеты

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

madge

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

< 4.0.1

4.0.1

EPSS

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

Дефекты

CWE-77
CWE-89

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

CVSS3: 8.6
nvd
почти 5 лет назад

This affects the package madge before 4.0.1. It is possible to specify a custom Graphviz path via the graphVizPath option parameter which when the .image(), .svg() or .dot() functions are called, is executed by the childprocess.exec function.

EPSS

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

Дефекты

CWE-77
CWE-89