Skip to content
Memory corruption Disclosed report Advanced CVE-2014-0553

Adobe Flash Player MP4 Use-After-Free Vulnerability

A malformed MP4 file causes Flash Player to keep updating a frame counter even after the page is closed, leading to a use-after-free. An attacker could exploit this to crash the browser or potentially achieve code execution.

hhj4ck Follow

Originally disclosed on HackerOne

Bounty$2,000 View original
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 5 months

I. Summary Adobe Flash Player is prone to a vulnerability which leads to Use-After-Free. After parsing a malformed mp4 file, Flash will keep on accessing a block of memory for timing. Such memory block is still accessed even the page containing Flash is closed, which leads to a memory crash.

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. NetStream object can load and play an external mp4 file. After playing a mp4 file, Flash will keep on updating a counter that saves the current frame and duration. A malformed mp4 file will trick the Flash to believe that this film never ends. The counter will not stop updating even the web page containing Flash is closing. Closing the page release Flash from the memory space, while the counter is still updated by a standalone thread. There are two possible types of crash depending on the order of different blocks' release:

  1. If the counter memory is freed first, then the memory crash is caused by accessing freed memory.
  2. If the code snippets that update the counter is freed first, then the crash is caused by executing freed memory.

Each of the two possible types of crash may by exploited by carefully crafted mp4 file which could lead to code execution.

POC and its source code are attached.
Previous and lastest version of Adobe Flash Player has been tested under both Windows 7 and Windows XP.

III. Impact Use-After-Free

IV. Affected Adobe Flash Player (verion >10) under Windows XP and Windows 7. Other versions of windows may also be affected.

V. Reference Fix: http://helpx.adobe.com/security/products/flash-player/apsb14-21.html It has been asigned as CVE-2014-0553

VI. Credit Liu Jincheng and Wen Guanxing from Venustech ADLAB are credited for this vulnerability.

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 frame counter thread continues to access memory after the page is closed and the memory is freed, because the malformed MP4 prevents the counter from stopping.

Impact

The use-after-free could lead to a crash and may be exploited by a carefully crafted MP4 file to achieve code execution.

What the attacker needed

Victim opens a malicious MP4 file in Flash Player; Flash Player version >10 on Windows XP or Windows 7

The fix

A fix reference is given in the Adobe security bulletin.

How it was found

  1. Create a malformed MP4 file that makes Flash believe the video never ends.
  2. Load the MP4 file in Flash Player using a NetStream object.
  3. Close the web page containing Flash, which frees the memory.
  4. Observe the crash caused by the still-running counter thread accessing freed memory.

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.

Flash Player is a browser plugin that plays multimedia. A use-after-free happens when a program frees memory but keeps using it, like deleting a file and then trying to open it. Here, a bad video file makes Flash keep a timer running after the page closes, so it touches memory that has been freed, which can crash the browser or let an attacker run 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.