-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prototype Pollution #6
Labels
bug
Something isn't working
Comments
@wjddnjs33 thank you for reporting this, feel free to submit a PR with the relative test. |
yeah i just created a pull request |
fabiocaccamo
added a commit
that referenced
this issue
Dec 6, 2021
fabiocaccamo
added a commit
that referenced
this issue
Dec 6, 2021
@wjddnjs33 just FYI, this is what I was asking for: |
thank you! Next time, I will give you a PR as above. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Summary
Hello @fabiocaccamo and @snyk.
I discovered a prototype pollution vulnerability via utils.js method analysis.
If you check the
set()
method ofutils.object.keypath
, you can see that the value of thepath
parameter is split with dots, and then merged with the value of thevalue
parameter based on the key value. this means that it can be exploited as a prototype pollution.I wrote PoC as above!
A prototype pollution vulnerability has occurred and you can see the object being polluted. To patch this vulnerability, use the
Object.freeze()
method or the key value must be verified. (e.g__proto__
)The text was updated successfully, but these errors were encountered: