Skip to content

Latest commit

 

History

History

03-Laevateinn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Oak Security CosmWasm CTF

Challenge 03: Laevateinn

Flash loan protocol which allows users to execute a flash loan using the proxy contract.

Flash loan contract entry points:

pub enum ExecuteMsg {
    SetProxyAddr { proxy_addr: String },
    FlashLoan {},
    SettleLoan {},
    WithdrawFunds { recipient: Addr },
    TransferOwner { new_owner: Addr },
}

Proxy contract entry points:

pub enum ExecuteMsg {
    RequestFlashLoan { recipient: Addr, msg: Binary },
}

Please check the challenge's integration_tests for expected usage examples. You can use these tests as a base to create your exploit Proof of Concept.

🏠 Base scenario:

  • The flash loan contract will have initial funds deposited.
  • Proxy contract is configured to flash loan contract.

⭐ Goal for the challenge:

  • Demonstrate how an unprivileged user can drain all funds from the flash loan contract.