Microsoft Media Foundation CQTMetadataKeysAtom GetKeyForIndex Information Disclosure Vulnerability
A malformed QuickTime MOV file can cause an out-of-bounds read in Microsoft Media Foundation's CQTMetadataKeysAtom::GetKeyForIndex because the number of key definitions parsed from the keys atom can be fewer than the number of data entries in the ilst atom. An attacker could exploit this to disclose memory or potentially corrupt the heap.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the CQTMetadataKeysAtom GetKeyForIndex functionality of Microsoft Corporation Microsoft Media Foundation 10.0.18362.476. A specially crafted malformed file can cause code execution resulting in remote code execution.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parser does not verify that the number of key definitions successfully parsed matches the number of data entries before indexing into the key array.
Impact
An attacker could potentially disclose information or cause heap corruption, though the report notes this may require heap grooming.
What the attacker needed
Victim opens a malicious MOV file
The fix
The vulnerability was fixed by the vendor.
How it was found
- Craft a QuickTime MOV file with a keys atom declaring more keys than are actually parsed.
- Include an ilst atom with data entries corresponding to the declared keys.
- Open the file in Windows Media Player with PageHeap enabled.
- Observe an out-of-bounds read in CQTMetadataKeysAtom::GetKeyForIndex when accessing a key beyond the parsed array.
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.
When Windows Media Player opens a video file, it reads a list of labels (keys) and a list of matching values. If the file lies about how many labels there are, the program can look past the end of its list and read memory it should not. This can leak information or crash the program.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.