GLibC Malloc for Exploiters: Leak It, Write It, Become a Wizard
summary
Walkthrough of GLibC malloc internals leads to concrete exploit primitives: demonstrations of pointer leaks that bypass ASLR (use-after-free and overlapping-chunk techniques), reliable arbitrary writes via tcache poison and large-bin frontlink/unlink manipulations, and code execution by overwriting malloc_hook or using dlopen/IO hooks; notes that tcache (added in 2.26) lacks integrity checks and that many 2001-era tricks still work; shows working CTF exploits, GDB debugging with symbol loading, and using LD_PRELOAD to test different libc versions.
AI-written summary · about
chapters (21)
- 0:00Introduction to heap exploits
- 1:32Glibc malloc internals
- 2:21Chunks and memory structure
- 4:43Chunk flags and metadata
- 7:06Understanding bins
- 8:56Tcache and arenas
- 10:45Malloc and free algorithms
- 11:52Leaking memory pointers
- 15:59Advanced leak techniques
- 17:36Bypassing ASLR
- 18:51Structural heap attacks
- 21:41Large bin exploitation
- 24:11Unlink attacks
- 26:01Functionality attacks
- 28:20Restricted attacks
- 30:44Hijacking flow via hooks
- 32:48DL open and file hooks
- 34:25IO structure exploitation
- 36:04CTF setup and debugging
- 37:19Debugging with symbols
- 39:01Q&A and conclusion
