In The Zone: OSX Heap Exploitation
summary
A working exploit targets Safari’s OS X heap by abusing metadata: overwriting the backward-size field to force coalescing and place controllable allocations next to each other, turning a heap overflow into an after-free style overwrite. A Python tool plus MacHeap + ldb extensions map region bitmaps and force allocations to a pinned magazine, predict exact allocation addresses, and automate debugging. Checksums bias to 1/3/7 (roughly 30% per try), and the demoed Safari exploit reaches about 5% reliability on current builds.
AI-written summary · about
chapters (11)
- 0:00Introduction and context
- 3:51Heap architecture basics
- 7:50OS X heap internals
- 20:28Advanced heap structures
- 23:46Tools and introspection
- 26:12Exploitation strategies
- 30:35Heap management and mitigation
- 37:23Debugging challenges
- 40:41Practical demonstration
- 51:51Analysis and refinements
- 55:41Safari exploitation and closing
