Challenges › Binary Exploitation
Follow the Stale Object
medium · 50 XP · flag · free · solves: 0
A small program called follow-the-stale-object manages one heap record with commands alloc, leak, free, view and edit. checksec shows NX enabled, stack canary found, PIE enabled, and full RELRO.
free releases the record but the program keeps using the same pointer afterward. view calls a function pointer stored inside that record. Free the record, then use edit to write a same-size replacement object into the freed memory, placing a new function pointer where the old one was. leak gives you an address to calculate from.
Submit the flag printed once the admin callback runs.
Tags: learn
Try next
- Memory It Should Not Show (easy)
- Map Every Jump (easy)
- Trace the Crash (easy)