Files
pwn-learning/PwnCollege/V8Exploitation/Level6

Level 6

Problem

Given a vulnerable builtin Array.prototype.functionMap(func):

  • It takes a PACKED_DOUBLE_ELEMENTS JSArray receiver and a JSFunction argument.
  • reinterpret_cast elements to a FixedDoubleArray, then for each element e:
    • Trigger a custom JavaScript callback func, with
      • Input: this double element e
      • Output: any double element o
    • And store o to e's original position.

Key Knowledge