Heap Overflow
Protostar 1
Solve
Two structs are being allocated, strcpy to the value of the ptr stored in struct, (no bounds checking so can overflow)
First argument to overflow to the next struct, second argument is to overflow the contents of the ptr in the next struct
Perform a GOT overwrite of the puts function as it is called at the end of main()
This is so that when puts is called after the overwrite, it redirects to win() instead
Last updated