Task | Quarantine |
---|---|
Competition | Teaser CONFidence CTF 2015 |
Location | Online |
Category | Software exploitation |
Platform | Linux x64 |
Scoring | 500 pts (hard) |
Number of solves | 5 out of 160 teams |
The developers of this service think they have found a way to automatically thwart all memory corruption attacks. Can you prove them wrong?
Click to expand
- Leak the address of the stack shadow memory by invoking the
give_me_the_flag
command. - Exploit a use-after-free vulnerability of the
vm::VMState
object through a dangling pointer in theglobals::current_vm
pointer, when all virtual machines are removed. By filling up the ASAN quarantine (adjusted to 1 MB during the CTF instead of the default 256 MB setting), we can replace the freedvm::VMState
object, and use it to zero-out arbitrary memory regions. - Zero out the shadow memory of the operation string buffer, and leak the shadow memory address of the buffer where the flag is loaded by
give_me_the_flag
. - Zero out the second shadow memory using the same UAF bug, and successfully retrieve the flag.