summaryrefslogtreecommitdiff
path: root/tests/testdata/run/proto_exploit.js
blob: 8bd22cfe532c2231e20c98bb590c69c7ed6a49b3 (plain)
1
2
3
4
5
const payload = `{ "__proto__": null }`;
const obj = {};
console.log("Before: " + obj);
Object.assign(obj, JSON.parse(payload));
console.log("After: " + obj);