Illuminate contest - jah'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: 68/88

Findings: 2

Award: $73.84

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

Awards

29.8781 USDC - $29.88

Labels

bug
duplicate
3 (High Risk)

External Links

Lines of code

https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/lender/Lender.sol#L192

Vulnerability details

Impact

The function lend is not validating the yield pool so an attacker can passes a malicious smart contract address into the y parameter which will return a big number (uint-1)when calling sellBasePreview in the yield function and the returned value is passed into a mint call which will mint the amount of returned values (uint-1) so by redeeming he can drain the contract

Proof of Concept

Tools Used

validate the given yield pool address

#0 - sourabhmarathe

2022-06-29T17:04:53Z

Duplicate of #349.

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)

Awards

43.9587 USDC - $43.96

External Links

Lines of code

https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/lender/Lender.sol#L297

Vulnerability details

Impact

The function lend which is used for swivel is not taking a fee when lending the code is only transferring lent amount which is the sum of uint256 amountLent = amount - fee; so the user is only transferring minus the fee

Proof of Concept

https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/lender/Lender.sol#L297

Tools Used

Manual

use lent + totoalfee in the transferFrom call

#0 - sourabhmarathe

2022-06-30T19:50:54Z

Duplicate of #92.

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