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

exploitDog

github логотип

GHSA-rc77-xxq6-4mff

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

Описание

Command Injection in hot-formula-parser

Versions of hot-formula-parser prior to 3.0.1 are vulnerable to Command Injection. The package fails to sanitize values passed to the parse function and concatenates it in an eval call. If a value of the formula is supplied by user-controlled input it may allow attackers to run arbitrary commands in the server.
Parsing the following formula creates a test file in the present directory:
"SUM([(function(){require('child_process').execSync('touch test')})(),2])"

Recommendation

Upgrade to version 3.0.1 or later.

Пакеты

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

hot-formula-parser

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

< 3.0.1

3.0.1

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-94

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

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

grammar-parser.jison in the hot-formula-parser package before 3.0.1 for Node.js is vulnerable to arbitrary code injection. The package fails to sanitize values passed to the parse function and concatenates them in an eval call. If a value of the formula is taken from user-controlled input, it may allow attackers to run arbitrary commands on the server.

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-94