Illuminate contest - poirots's results

Your Sole Source For Fixed-Yields.

General Information

Platform: Code4rena

Start Date: 21/06/2022

Pot Size: $55,000 USDC

Total HM: 29

Participants: 88

Period: 5 days

Judge: gzeon

Total Solo HM: 7

Id: 134

League: ETH

Illuminate

Findings Distribution

Researcher Performance

Rank: 39/88

Findings: 3

Award: $172.22

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Findings Information

🌟 Selected for report: Kumpa

Also found by: Metatron, cccz, cryptphi, hansfriese, jah, kenzo, kirk-baird, pashov, poirots

Labels

bug
duplicate
2 (Med Risk)
disagree with severity

Awards

43.9587 USDC - $43.96

External Links

Lines of code

https://github.com/code-423n4/2022-06-illuminate/blob/92cbb0724e594ce025d6b6ed050d3548a38c264b/lender/Lender.sol#L192-L235

Vulnerability details

The first implementation of lend, targeting the Illuminate and Yield tokens, is accounting fees when minting tokens for msg.sender, but is not updating fees.

Impact

Lending of Illuminate and Yield tokens, as long as feenumerator > 0, will result in the intended fee amount remaining locked in the Lender contract, and not accounted for when withdrawing fees to the admin. The only way then to retrieve them is via withdraw which always withdraws the full balance.

Tools Used

Manual Analysis

Add the missing logic to this particular lend function:

fees[u] += calculateFee(a)

#0 - KenzoAgada

2022-06-28T06:44:04Z

Duplicate of #208

no emitted events on admin functions

Several functions that set contract settings to do emit events regarding those updates. For future-proofing and outside visibility, it is recommended that events are added to reflect the internal state updates of the contracts

Safe.sol should document the commit ref of solmate it is inspired from

This can help future developments, and audits, quickly identify possible problems that are fixed in future solmate versions without having to manually check the history

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