My fuzzer finds those crashes, which caused by the same bug. Object.setPrototypeOf(Object.prototype, Array.prototype) makes the prototype chain loop. Object.prototype should be a immutable prototype exotic object. So, jsish should throw a TypeError when js code sets the prototype of the builtin Object.
version: jsish 3.5.0 os: ubuntu 20.04
poc1:
poc2:
output: segment fault caused by OOM
My fuzzer finds those crashes, which caused by the same bug.
Object.setPrototypeOf(Object.prototype, Array.prototype)
makes the prototype chain loop. Object.prototype should be a immutable prototype exotic object. So, jsish should throw a TypeError when js code sets the prototype of the builtinObject
.ISec Lab.