Fraxlend (Frax Finance) contest - tabish's results

Fraxlend: A permissionless lending platform and the final piece of the Frax Finance Defi Trinity.

General Information

Platform: Code4rena

Start Date: 12/08/2022

Pot Size: $50,000 USDC

Total HM: 15

Participants: 120

Period: 5 days

Judge: Justin Goro

Total Solo HM: 6

Id: 153

League: ETH

Frax Finance

Findings Distribution

Researcher Performance

Rank: 79/120

Findings: 1

Award: $46.38

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPair.sol#L288

Vulnerability details

Impact

Detailed description of the impact of this finding.

A malicious approved lender can call setApprovedLenders with _approval==False effectively removing approval for all other lenders which denies them access to deposit, mint, liquidate, liquidateClean functions. This can be done to remove competition in case of liquidations where a slower liquidation bot owner can remove a better bot from the approvedLenders list.

Proof of Concept

Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.

Malicious approved lender calls setApprovedLenders with list of _lenders and _approval==False

Tools Used

Manual Review

Restrict access to setApprovedLenders by making it an onlyOwner function

#0 - amirnader-ghazvini

2022-08-29T18:49:57Z

Duplicate of #157

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter