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

exploitDog

github логотип

GHSA-9h4g-27m8-qjrg

Опубликовано: 07 июл. 2020
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

Path Traversal in socket.io-file

All versions of socket.io-file are vulnerable to Path Traversal. The package fails to sanitize user input and uses it to generate the file upload paths. The socket.io-file::createFile message contains a name option that is passed directly to path.join(). It is possible to upload files to arbitrary folders on the server by sending relative paths on the name value, such as ../../test.js. The uploadDir and rename options can be used to define the file upload path.

Пакеты

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

socket.io-file

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

<= 2.0.31

Отсутствует

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-22

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

CVSS3: 7.5
nvd
больше 5 лет назад

A Path Traversal issue was discovered in the socket.io-file package through 2.0.31 for Node.js. The socket.io-file::createFile message uses path.join with ../ in the name option, and the uploadDir and rename options determine the path.

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-22