Apple Remote Code Execution with Image Files
Five memory-safety flaws in Apple's image-parsing frameworks (Image I/O, Scene Kit, Core Graphics) let a crafted TIFF, OpenEXR, Digital Asset Exchange or BMP file corrupt memory. An attacker could achieve remote code execution by delivering such a file through iMessage, a web page, MMS or an attachment.
blog.talosintel.com
Published on blog.talosintel.com
Many of the wide variety of file formats are designed for specialized uses within specific industries. Apple offers APIs as interfaces to provide a definitive way to access image data for multiple image formats on the Apple OS X platform.
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 missing bounds checks and type confusion in Apple's image parsers when handling tiled TIFF, OpenEXR, Digital Asset Exchange and BMP files.
Impact
An attacker could achieve remote code execution, potentially without user interaction because some apps render images automatically; the report notes TALOS-2016-0183 was patched in OSX 10.11.5.
What the attacker needed
Victim opens a crafted image; app uses Apple image APIs; no user interaction may be needed
The fix
Apple should add proper bounds and type checks in its image parsers; the report says TALOS-2016-0183 was patched in OSX 10.11.5 and recommends patching to the latest release.
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.
Image files are opened automatically by many apps, so a malformed image can be dangerous. These bugs are memory errors: the software writes data past the end of a buffer, which an attacker can use to run their own code. The report lists five such bugs in Apple's image-handling 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.