Logo
Day 4
Overview

Day 4

n nalo_
October 4, 2024
1 min read

warmup/whamazon

Whamazon
Author
n nalo_
Category
warmup

This challenge is a huge classic. When starting up the container, we can access to a site that looks like a terminal. In fact, after inspection, we can find that the site is using gotty, an app to reflect your terminal on the web.

The challenge is quite simple: we are on a shop, with a fixed amount of money. We can buy random items, and some are too expensive for our wallet. One of the items is quite litteraly The Flag.

Items from the shop

Of course, when we try to buy it, it is too expensive ($1’000’000’000). The goal is to manipulate the amount of our wallet so that we can buy the flag.
Unfortunately, as the website is only a reflection of the server’s terminal, we can’t edit the amount from a javascript variable on client-side.

When trying to buy an affordable item, we can see the operation that calculate the amount of money to remove from your wallet, based on the price and the quantity:

Buying from the shop

However, there’s no check for minus quantity. It’d result on a negative substraction from our wallet. In simpler terms, adding money.

Gaining money

We now have enough money to buy the flag! The shop doesn’t want to give it so easily, so we have to beat it to a rock-paper-scisor game.

Flag buying process

We can then go back to the menu and see the content of the inventory to see the flag.

misc/malibu

Malibu
Category
misc

TODO