CS Fundamentals Trainer · JavaScript · Security
A naive recursive merge(target, source) copies every key of JSON.parse(body) into a plain object. Which payload does NOT add a property to…
A naive recursive `merge(target, source)` copies every key of `JSON.parse(body)` into a plain object. Which payload does NOT add a property to `Object.prototype`?
- `{"__proto__": {"isAdmin": true}}`
- `{"constructor": {"prototype": {"isAdmin": true}}}`
- `{"prototype": {"isAdmin": true}}`
- `{"a": {"__proto__": {"isAdmin": true}}}`
Difficulty: hard