pwnPromedium

pwn9_mc5 — Mic Check: leak and pwn 2!

spbctf

Task: menu-driven heap allocator (glibc 2.31) with UAF (delete doesn't clear slot) and heap overflow in allocate() where user-controlled name_len can exceed the chunk size. Solution: unsorted-bin leak to get libc, then tcache poisoning by overflowing an in-use chunk into a tcache-linked neighbour's fd to return __free_hook, write system, free('/bin/sh').

$ ls tags/ techniques/
unsorted_bin_leakfree_hook_overwritetcache_poisoning_via_heap_overflowsystem_binsh

🔒

Permission denied (requires tier.pro)

Sign in to access full writeups

Sign in with GitHub to continue. No email required.

$sign in

$ grep --similar

Similar writeups