Mobile Hacking Labs 
Light Leak

LightLeak is a fictional iOS messaging client with a convenient feature: it automatically generates thumbnails for incoming image attachments. Unfortunately (or fortunately) it ships with a real heap overflow in Apple's EXR image decoder = every message you send the device lands as a heap-allocated message record, and like any polite messaging client, LightLeak acknowledges delivery and sends read receipts, serializing message metadata in the process.   

Hint: This app contains a real-world vulnerability in ImageIO (CVE-2026-86869, libAppleEXR) fixed in iOS 27.  

Objective
Exploit the EXR decoder overflow by sending crafted image attachments to the device: corrupt a message record, turn the app's own read receipts into an information leak to defeat ASLR, and hijack the record's receipt callback to execute the hidden flag function.

Skills Required

  • Reverse Engineering: Proficiency in disassembling and analyzing compiled code.
  • Exploitation Techniques: Heap exploitation basics (grooming, overflow sizing, write-what-where primitives, ASLR bypass). 

Course Lessons