Adobe Flash Rectangle Return Use-After-Free

Several methods in Adobe Flash return instances of the Rectangle class. There is a use-after-free in creating these objects for return. If the this object of the call is a MovieClip, the Rectangle instantiation will run on its thread. If a getter is added to this class’s package, it will be invoked when fetching the rectangle constructor, which can free the method’s thread, which will cause the Rectangle constructor to run on a thread which has been freed.

Leave a Reply