-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX Protect against object prototype pollution #879
FIX Protect against object prototype pollution #879
Conversation
6342a92
to
448aaf0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builtin prototype extension is a bad idea so while we should guard against security related implications, this does look ugly.
I wonder if we should put this check in a function rather than peppering it everywhere?
We'd replace one function with another 1 line function, which would have to be peppered about, so I'm not clear on the advantage of doing that
The alternative is to change how we iterate through the properties of an object, just |
I think a function named |
I'm not sure that's going to be any clearer - that means a future dev will have to go and look at what the function does (not a lot) rather than just see a single inline call to It's also oddly specific, what if we want to 'safely iterate' over another object? |
Shrug. |
What this does:
Fixes #261