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

exploitDog

github логотип

GHSA-jp4x-w63m-7wgm

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

Описание

Prototype Pollution in hoek

Versions of hoek prior to 4.2.1 and 5.0.3 are vulnerable to prototype pollution.

The merge function, and the applyToDefaults and applyToDefaultsWithShallow functions which leverage merge behind the scenes, are vulnerable to a prototype pollution attack when provided an unvalidated payload created from a JSON string containing the __proto__ property.

This can be demonstrated like so:

var Hoek = require('hoek'); var malicious_payload = '{"__proto__":{"oops":"It works !"}}'; var a = {}; console.log("Before : " + a.oops); Hoek.merge({}, JSON.parse(malicious_payload)); console.log("After : " + a.oops);

This type of attack can be used to overwrite existing properties causing a potential denial of service.

Recommendation

Update to version 4.2.1, 5.0.3 or later.

Пакеты

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

hoek

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

>= 5.0.0, < 5.0.3

5.0.3

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

hoek

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

< 4.2.1

4.2.1

EPSS

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

8.8 High

CVSS3

Дефекты

CWE-1321

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

CVSS3: 8.8
ubuntu
почти 8 лет назад

hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of "Object" via __proto__, causing the addition or modification of an existing property that will exist on all objects.

CVSS3: 2.9
redhat
почти 8 лет назад

hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of "Object" via __proto__, causing the addition or modification of an existing property that will exist on all objects.

CVSS3: 8.8
nvd
почти 8 лет назад

hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of "Object" via __proto__, causing the addition or modification of an existing property that will exist on all objects.

CVSS3: 8.8
debian
почти 8 лет назад

hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Mo ...

EPSS

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

8.8 High

CVSS3

Дефекты

CWE-1321