Day 6

Memory corruption Memories of Christmas Past. This room introduces us to memory manuplation and buffer overflow

Learning Objectives

  • Understand how specific languages may not handle memory safely.

  • Understand how variables might overflow into adjacent memory and corrupt it.

  • Exploit a simple buffer overflow to directly change memory you are not supposed to access.

The room is very straightforward and simple with all the instructions given, we just need to follow accordingly

Convert the hex 4f 4f 50 53 to decimal but keep in mind the little-indian  byte order and this will give us the answer
What is the value of the final flag?
To get the flag we need to match the ID of the star in the shop of Van Frosty. We have to over flow into the inventory part of the memory layout and assign the value of the star. 
This can be done by changing our name at Van Holly. 
After the name is changed we have the start in our inventory and we just interact with the christmass tree and it gives us the flag


Last updated

Was this helpful?