Created
April 2, 2024 06:32
-
-
Save R99bbit/e1806e720df8368bfc1301b6ecd8dc63 to your computer and use it in GitHub Desktop.
simple prototype pollution in js
This file contains hidden or 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
| let obj1 = {} | |
| obj1.__proto__.attack = 'this object is polluted' | |
| console.log(obj1.attack) | |
| let obj2 = {} | |
| console.log(obj2.attack) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment