Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix prototype pollution in merge, clone, extend utilities#826

Merged
pissang merged 1 commit into
masterfrom
fix-prototype-pollution
Sep 15, 2021
Merged

fix prototype pollution in merge, clone, extend utilities#826
pissang merged 1 commit into
masterfrom
fix-prototype-pollution

Conversation

@pissang
Copy link
Copy Markdown
Contributor

@pissang pissang commented Sep 15, 2021

No description provided.

@100pah
Copy link
Copy Markdown
Contributor

100pah commented Dec 7, 2024

memo poc

// poc.js
const zrender = require('zrender');
const obj = {};
const payload =  JSON.parse('{"__proto__":{"polluted":"Polluted!"}}');

console.log("Before: " + obj.polluted);
zrender.util.merge(obj, payload);
console.log("After: " + polluted);

plainheart added a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants