Adobe Flash Player ContentFactory class Memory Corruption Vulnerability
Adobe Flash Player does not properly validate the parameter to ContentFactory.retrieveAdPolicySelector(), leading to memory corruption when called directly with an invalid parameter, causing a crash.
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3.5 years
I. Summary Adobe Flash Player is prone to a vulnerability which leads to memory corruption because of improper validation of ContentFactory.retrieveAdPolicySelector().
II. Description Adobe Flash is a multimedia and software platform used for authoring of vector graphics, animation, games and rich Internet applications (RIAs) that can be viewed, played and executed in Adobe Flash Player.
Normally, retrieveAdPolicySelector() should validates its parameter and returns error in AS3 level if anything goes wrong. If retrieveAdPolicySelector() function is invoked directly with invalid parameter, some inner class instance will be absent, which will cause a memory crash.
POC Source Code:
package { import com.adobe.tvsdk.mediacore.ContentFactory; import com.adobe.tvsdk.mediacore.MediaPlayerItem; import com.adobe.tvsdk.mediacore.PSDK; import flash.display.Sprite;
public class poc extends Sprite
{
public function poc()
{
var ps:PSDK = PSDK.pSDK;
var mt:MediaPlayerItem;
var obj:ContentFactory = ps.createDefaultContentFactory();
obj.retrieveAdPolicySelector(mt);
}
}
}
III. Impact Memory Corruption
IV. Affected Adobe Flash Player 21.
V. Credit Wen Guanxing from Pangu LAB is credited for this vulnerability.
It has been assigned as CVE-2016-1098 by Adobe: https://helpx.adobe.com/security/products/flash-player/apsb16-15.html
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the function retrieveAdPolicySelector() does not validate its parameter, so when called directly with an invalid parameter, an inner class instance is missing, causing a memory crash.
Impact
Memory corruption.
What the attacker needed
Adobe Flash Player 21; Ability to run ActionScript code
How it was found
- Create a PSDK instance.
- Create a default ContentFactory using the PSDK instance.
- Call retrieveAdPolicySelector() on the ContentFactory with an uninitialised MediaPlayerItem variable.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a bug in Adobe Flash Player, a program that used to run animations and games in web browsers. The bug is in a function that is supposed to check its input; if you call it with bad input, the program can crash. This kind of bug is called memory corruption.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.