Rating: 5.0

NULL byte overflow.

Get overlapped chunks to leak libc address, then use overlapped chunks to do a tcache poisoning attack and overwrite `__free_hook` with one gadget for RCE.

Original writeup (https://faraz.faith/2019-10-12-picoctf-2019-heap-challs/#ghost_diary).