On the effectiveness of address-space randomization

Hovav Shacham, Matthew J. Page, Ben Pfaff, Eu-Jin Goh, Nagendra Modadugu, Dan Boneh

2004 · 861 citations · 13 references

Concepts

TL;DR

Address‑space randomization (ASLR) diversifies memory layout to protect against buffer‑overflow attacks and is available on Linux (PaX ASLR) and OpenBSD. The study investigates the effectiveness of ASLR on 32‑bit architectures, focusing on the impact of limited randomization bits. The authors demonstrate a derandomization attack that converts standard buffer‑overflow exploits into ones that bypass ASLR without requiring stack code execution. The attack is as effective as the original exploit, taking on average 216 seconds to compromise Apache on a Linux PaX ASLR system, illustrating that ASLR’s protection is constrained by the number of randomization bits.

Abstract

Address-space randomization is a technique used to fortify systems against buffer overflow attacks. The idea is to introduce artificial diversity by randomizing the memory location of certain system components. This mechanism is available for both Linux (via PaX ASLR) and OpenBSD. We study the effectiveness of address-space randomization and find that its utility on 32-bit architectures is limited by the number of bits available for address randomization. In particular, we demonstrate a <i>derandomization attack</i> that will convert any standard buffer-overflow exploit into an exploit that works against systems protected by address-space randomization. The resulting exploit is as effective as the original exploit, although it takes a little longer to compromise a target machine: on average 216 seconds to compromise Apache running on a Linux PaX ASLR system. The attack does not require running code on the stack.

References

13