Beginner FriendlyFoundryDeFiOracle
100 EXP
View results
Submission Details
Severity: medium
Valid

Centralization Risks: Owner can update flash loan fee and set allowed token in ThunderLoan & ThunderLoanUpgraded contracts

Summary

The owner (or attacker who steals the owner's wallet) can call ThunderLoan#setAllowedToken() to set his own token for the depositing. Also he can call ThunderLoan#updateFlashLoanFee() to update new flash loan fee for the protocol.
ThunderLoanUpgraded contract contains the same issues.

Impact

Many deposit() and redeem() transactions will fail due to insufficient allowed token amount. Users could be charged more when calling flashloan() function.

Tools Used

Manual review.

Recommendations

The owner of the contract should be a timelock contract.

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Admin Input/call validation
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

centralized owners can brick redemptions by unallowing a token

Support

FAQs

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