Heist Walkthrough

Challenge Statement#

image

Solution#

Once again, we visit the site and view the Solidity source code.

image

The goal here is to drain the contract’s wallet, which would cause isSolved() function to return true.

image

One vulnerability is that anyone can call the changeOwnership() function to become the new owner, after which we can call withdraw() to transfer all funds from the wallet.

image

Now, we can go back to the webpage and get the flag.

Screenshot 2025-03-27 014442


Adapted from harishkannan05/THM-HackfinityBattle-Writeup under MIT.

Find us elsewhere

Merch, stickers, and moreSupport the work at the Solvere Labs shop