Tags: pwn 

Rating:

tl;dr Heap overflow in edit(); Perform house of force to get chunk in GOT; Overwrite atoi with printf to get a format string to leak libc; Overwrite atoi with system

Original writeup (https://amritabi0s.wordpress.com/2017/12/19/inctf-2017-gryffindor-wirteup/).