InsureDAO contest - Fitraldys's results

Anyone can create an insurance pool like Uniswap.

General Information

Platform: Code4rena

Start Date: 07/01/2022

Pot Size: $80,000 USDC

Total HM: 21

Participants: 37

Period: 7 days

Judge: 0xean

Total Solo HM: 14

Id: 71

League: ETH

InsureDAO

Findings Distribution

Researcher Performance

Rank: 20/37

Findings: 4

Award: $652.87

🌟 Selected for report: 4

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: Dravee

Also found by: Fitraldys, Ruhum, WatchPug, danb, egjlmn1, robee

Labels

bug
duplicate
2 (Med Risk)

Awards

86.5379 INSURE - $30.29

52.5409 USDC - $52.54

External Links

Handle

Fitraldys

Vulnerability details

Impact

In the https://github.com/code-423n4/2022-01-insure/blob/main/contracts/PoolTemplate.sol#L703 it will loop through an entire indexList array this doesnt immedietely impact other user, however when there is many user call allocateCredit this function will add another indexlist if the user didnt exist in the first place. Lets say the time this contract was deployed there are only 3 unique user that call alocateCredit, thats make it the indexlist.length to 3, and it still relatively cheap in term of gas when another user call resume function, but if there are 100 unique user that call alocateCredit that makes it the indexList.length to 100, this will make the gas cost for other user that call resume expensive, since it will loop through all the indexlist variable that the contract has

Proof of Concept

https://github.com/code-423n4/2022-01-insure/blob/main/contracts/PoolTemplate.sol#L703

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