Beginner FriendlyFoundryDeFiOracle
100 EXP
View results
Submission Details
Severity: high
Invalid

Flash Loan Reentrancy Attack

Summary

Reentracy attack allows for multiple flash loans to be taken out by a single attacker, leading to stolen funds.

Vulnerability Details

When ThunderLoan makes the function call [executeOperation()] to the receiver address/contract, to recall the loan, there are no return checks for the success of the call. So an attacker can have fallback function that calls flashloan() recursively, where thunderloan makes successive transfers of the underlying asset to the attacker.

Impact

These successive transfers of the underlying asset to the attack continues until the attacker stops or the thunderloan asset balance has been completely drained.

Tools Used

Recommendations

include a require statement around the functionCall() to check whether the reciever address contract has correctly implemented the executeOperation() function to pay back the loan.

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Vague generalities

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.