Apex › Security & web

How ASLR randomizes the addresses

ROP hardcodes addresses — so ASLR loads libc, the stack, the heap, and the executable at a random base every run, and the stale chain jumps into nowhere. But everything inside libc shifts by the same offset, so leaking a single runtime address recovers the base and every gadget with it. Randomize, watch the blind chain crash, then leak an address and watch the recomputed chain land on system(). ASLR with no leak is strong; with one leak it falls.

More in Security & web