Skip to content
Memory corruption Write-up Advanced

(CVE-2021-34503) Windows Media Foundation Type Confusion Vulnerability

A type confusion in Windows Media Foundation's QuickTime metadata parser causes an out-of-bounds heap read when a crafted file is opened. An attacker could trigger a crash by getting a victim to view a malicious file in a folder via Internet Explorer or Microsoft Edge.

starlabs.sg

Published on starlabs.sg

There is a type confusion when parsing Quick Time video file format’s metadata that leads to OOB access on heap memory. The vulnerability can be triggered by navigating into folder contains POC file, inside Internet Explorer and Microsoft Edge.

The author, on starlabs.sg

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the parser assumes a sample description object is a larger type than it actually is, so it reads a field beyond the allocated 0x100-byte object.

Impact

The report demonstrates only a crash (denial of service); it does not show code execution.

What the attacker needed

Victim opens a folder containing the file; Internet Explorer or Microsoft Edge

How it was found

  1. Place the crafted QuickTime file in a folder.
  2. Open that folder in Internet Explorer or Microsoft Edge.
  3. The media metadata handler parses the file and crashes.

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 write-up has not been written yet. The Original tab links to the source.

A type confusion happens when a program treats one kind of data as another, so it reads the wrong fields. Here, a malformed QuickTime video file makes Windows' media parser read past the end of a small memory block, which crashes the program. The report only shows a crash, not full code execution.

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.

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.