Hacking Blind
Andrea Bittau, Adam Belay, Ali José Mashtizadeh et al. · Proceedings - IEEE Symposium on Security and Privacy/Proceedings of the ... IEEE Symposium on Security and Privacy · 2014
We show that it is possible to write remote stack buffer overflow exploits without possessing a copy of the target binary or source code, against services that restart after a crash. This makes it possible to hack proprietary closed-binary services, or open-source servers manually compiled and installed from source where the binary remains unknown to the attacker. Traditional techniques are usually paired against a particular binary and distribution where the hacker knows the location of useful gadgets for Return Oriented Programming (ROP). Our Blind ROP (BROP) attack instead remotely finds enough ROP gadgets to perform a write system call and transfers the vulnerable binary over the network, after which an exploit can be completed using known techniques. This is accomplished by leaking a single bit of information based on whether a process crashed or not when given a particular input string. BROP requires a stack vulnerability and a service that restarts after a crash. We implemented Braille, a fully automated exploit that yielded a shell in under 4,000 requests (20 minutes) against a contemporary nginx vulnerability, yaSSL + MySQL, and a toy proprietary server written by a colleague. The attack works against modern 64-bit Linux with address space layout randomization (ASLR), no-execute page protection (NX) and stack canaries.
Cited by 313 works. doi:10.1109/sp.2014.22
Authors
References
- StackGuard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks
- Smashing The Stack For Fun And Profit
- On the effectiveness of address-space randomization
- Address obfuscation: an efficient approach to combat a board range of memory error exploits
- Control-flow integrity
- Return-Oriented Programming
- Where's the FEEB? the effectiveness of instruction set randomization
- Smashing the Gadgets: Hindering Return-Oriented Programming Using In-place Code Randomization
- G-Free
- Binary stirring