Smashing the Stack: Modern Mitigations Against a Classic Exploit
summary
An interactive CTF demonstrates classic overflow: a 64‑byte local buffer is fed 256 bytes, requiring exactly 72 bytes of padding then an 8‑byte return address to jump to the win function; this works before mitigations. Modern defenses shown include safe stack (separates control data), shadow stack and stack canary, plus ASLR and NX. Participants use a debugger, a microVM terminal, and decompilers (Hex-Rays, Dogbolt) to locate the safe‑stack pointer via fs segment info and finally bypass the mitigation.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 2:11Stack basics and memory layout
- 5:17Stack overflow fundamentals
- 7:57First CTF challenge walkthrough
- 16:13Safe stack mitigation explained
- 19:27Second CTF challenge with safe stack
- 23:45Bypassing safe stack without debug info
- 27:01Other stack hardening techniques
- 29:33C++ stack unwinding challenges
- 37:34Key takeaways and Q&A
