All challenge files + exploit can be found here: https://github.com/farazsth98/CTF/tree/master/realworldctf-2024/safebridge
The setup of the challenge is as follows:
- Two bridge contracts deployed on L1 and L2.
- WETH is deployed on L2 at hardcoded address
L2_WETH
. - The deployer has already transferred 2 WETH from L1 to L2, so the L1 bridge has 2 WETH in it.
- The objective is to drain the L1 bridge.