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

ReEntrancy Vulnerability in Flash loans

Vulnerability Details

Flashloan function is vulnerable to the re entrancy.In the flashloan function it just checking the ending balance and the starting balance if I reentrant in the function the starting balance will always be change again and again .So in the last transaction if i managed to pass the "if (endingBalance < startingBalance + fee)" condition i can easily reentrant.And this condition can be passed to false by giving the ending balance more than the starting balance and the fees.

Impact

High

Tools Used

Manual Review

Recommendations

Use the re-Entrancy guard

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Vague generalities

Support

FAQs

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