Skip to content

Commit

Permalink
Merge pull request #107 from julianhal/shop5
Browse files Browse the repository at this point in the history
Add fessemisk shop 5
  • Loading branch information
nordbo authored Nov 11, 2024
2 parents bf6a295 + 3c74037 commit 602173f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions writeups/web/Shop 5/FesseMisk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Shop 5

## Description

It appears that PHP was not the solution after all, so we switched to the much more modern and secure Python language. Fortunatly, using modern frameworks also guarantees that our application is fully secure!

If you should manage, somehow to buy the new exclusive EPT fidget toy merchandise, you can claim 5 physical instances at the admin booth after you have bought the toy in the shop and submitted the flag on the platform!

Challenge link:
https://fessemisk-e214-shop-5.ept.gg

## Solution

After experimenting with the site, I discovered that I could sell other users orders by modifying the `order_id`. Observing that `order_id` was set to `1` for the first user and `2` for the second, I changed my sell payload to `order_ids=2&order_ids=1`, allowing me to sell orders from both users into one account:

![](images/2024-11-10-21-47-32.png)

This worked and doubled my balance.
![](images/2024-11-10-21-50-18.png)

Next, I tried purchasing two "Fun toys" with my 200 balance, but only one toy was removed from my inventory when I sold them both. This allowed me to continually buy and sell toys, doubling my balance each time. Repeating this process enough times gave me enough funds to purchase the EPT fidget toy.

![](images/2024-11-10-21-55-56.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 602173f

Please sign in to comment.