Apex › Security & web

How a buffer overflow hijacks a program

The foundational binary exploit, shown byte by byte on a simulated stack frame: an unbounded copy writes past a fixed buffer, over the saved frame pointer, into the return address — so the function returns to an address you chose. A narrated walk from the overflow to a control-flow hijack to shellcode. Type input and watch it spill over the return address. Defenses (NX, ASLR, canaries) are the next stories.

More in Security & web