Welcome to ToddlerCache (t-cache for short)
nc cha.hackpack.club 41703
Files: repo
Analysis
Binary info:
Executing binary shows us that we have abilities to create new records, write to them and free them.
Decompiling binary shows that binary contains use-after-free vulnerability. We can free the chunk and then write to it.
To exploit this vulnerability we can malform tcache bin list by making one of the freed chunks point to the location that we want to overwrite.
We can that now that freed chunk points to puts in GOT section.
Allocating new chunk and writing to it address of call_me
allows us to overwrite the address of put@got
and spawn a shell.
Full exploit