Why Apple still lets malformed media files reach decoders – and how to stop it
3 jamweba 2 5/5/2025, 12:07:17 PM
Proposed: a memory-safe, pre-decoder validator layer for media inputs (MP4, MOV, etc) that Apple could deploy without changing existing decoders.
Eliminates a class of zero-click exploits. No format breakage. No patching.
https://jam2we5b3a.medium.com/this-is-the-future-apple-should-already-be-shipping-054c69d78e50
If validating media integrity is as simple as checking a few bytes in the header, the decoder could already do that on its own.
Presumably there are attacks in media that look valid but cause subtle decoding bugs that then escalate into more serious things. How would this proposal catch those without an in depth understanding of each codec and version's possible failure modes, per operating system and hardware combo? The people who typically know that the best are already on decoder or security teams, and this just moves their work to a separate project where they'd have to integrate their checks and preventive measures alongside every other format's. Seems like a lot of work?
This write-up outlines a minimal architectural fix: a structural validator that intercepts files before decoding begins.
Curious what others think: Why hasn’t this already been adopted? Would Apple (or anyone) ship it?