hard20 pts · first answer countssmart-contract-securitydefiaccess-control
A flash loan callback anyone can trigger
A contract implements onFlashLoan(initiator, token, amount, fee, data) and performs swaps based on data. It checks msg.sender is the lender but ignores initiator. What can an attacker do?
Discussion 0
Join free to post in the discussion.
Related questions
- What msg.sender isBlockchain Developer
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- What makes a flash loan possibleBlockchain Developer
- How an AMM sets pricesBlockchain Developer
- What TVL measuresBlockchain Developer