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

exploitDog

github логотип

GHSA-38h8-x697-gh8q

Опубликовано: 09 нояб. 2018
Источник: github
Github: Прошло ревью
CVSS3: 6.5

Описание

Tmp files readable by other users in sync-exec

Affected versions of sync-exec use files located in /tmp/ to buffer command results before returning values. As /tmp/ is almost always set with world readable permissions, this may allow low privilege users on the system to read the results of commands run via sync-exec under a higher privilege user.

Recommendation

There is currently no direct patch for sync-exec, as the child_process.execSync function provided in Node.js v0.12.0 and later provides the same functionality natively.

The best mitigation currently is to update to Node.js v0.12.0 or later, and migrate all uses of sync-exec to child_process.execSync().

Пакеты

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

sync-exec

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

<= 0.6.2

Отсутствует

EPSS

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

6.5 Medium

CVSS3

Дефекты

CWE-377

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

CVSS3: 6.5
nvd
около 7 лет назад

The sync-exec module is used to simulate child_process.execSync in node versions <0.11.9. Sync-exec uses tmp directories as a buffer before returning values. Other users on the server have read access to the tmp directory, possibly allowing an attacker on the server to obtain confidential information from the buffer/tmp file, while it exists.

EPSS

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

6.5 Medium

CVSS3

Дефекты

CWE-377