-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
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.
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.
Sorry about that one @toufik-airane @mufeedvh! Changes to |
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.
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.
Congratulations bbeale - your fix has been selected! 🎉 Thanks for being part of the community & helping secure the world's open source code. |
Hey folks - I'm going to manually cherry-pick this, but I'd love your support by having pull requests in future go upstream! |
Actually it appears there was a PR, but it had conflicts. |
📊 Metadata *
Please enter the direct URL for this bounty on huntr.dev. This is compulsory and will help us process your bounty submission quicker.
Bounty URL: https://www.huntr.dev/app/bounties/open/1-npm-bson-objectid
⚙️ Description *
Added methods for creating new ObjectID from JSON after removing unwanted properties from it.
💻 Technical Description *
ObjectID.hasRequiredProps
.ObjectID.sanitizeObject
then removes unwanted properties from the JSON.ObjectID.createFromObject
then creates an ObjectID from the scrubbed JSON.🐛 Proof of Concept (PoC) *
Provide the vulnerability exploit to show the security issue you're fixing.
🔥 Proof of Fix (PoF) *
Replay the vulnerability exploit to show the successful fix and mitigation of the vulnerability.
👍 User Acceptance Testing (UAT)
Run the following unit test