Mission Modern WETH: Rescue the Ether

ModernWETH

Objective

In the ever-evolving world of decentralized finance, an ambitious developer took it upon himself to update the well-established WETH9. The result was ModernWETH, a modernized version in Solidity, that rapidly attracted deposits of over 1000 Ether.

However, we've encountered a challenge. Hidden within the code, a potential vulnerability threatens the security of the funds locked within the contract. This situation calls for the dedication and expertise of blockchain security auditors. Are you ready to step up, solve this issue, and play a crucial role in preserving the sanctity of the Ethereum ecosystem? This is the test of our resolve and adaptability, something I've seen in this community time and again.

📌 Starting with 10 ETH, recover 1000 ETH from the ModernWETH contract.

📌 Recover all ETH to avoid further losses from ModernWETH contract. Whitehat hacker should end up with 1010 ETH.

🗒️ Concepts you should be familiar with (spoilers!)

The contracts that you will hack are:

The test script where you will have to write your solution is:

Writeup

PoC

Last updated