iOS 5.x iBoot HFS+ Heap Buffer Overflow
List of contents
Part 1: Download iOS firmwares
Part 3: Downgrade back to a vulnerable firmware
Part 4: Prepare on-device workspace
Part 6: Set HFSReadBlock( ) wrapper
Part 7: Trigger the heap buffer overflow
Part 8: Dump and overwrite TLB
Part 9: Overwrite current running iBoot
Credits/Thanks to
@p0sixninja for the discovery of this vulnerability and his BlackHat training class presentation material he released for us.@nyan_satan for many precious and helpful advices. Honestly, I would not be at this point without and this writeup would have not existed.
@JonathanSeals for advices and his own implementation of this exploit as reference. See his Ancient-iBoot-Fun GitHub repository for more details.