Hunt prep
Before you test InsureDAO contest
What 21 disclosed reports say about InsureDAO contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 10 | 0 | – | – | $0 |
| Access control lesson | 7 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Tokens can be burned with no access control
Add a check at the start of `utilize()` that the `controller` address is not zero, as is already done in other functions.
Disclosed
-
Typo in PoolTemplate unlock function results in user being able to unlock multiple times
The typo was fixed by changing the comparison to an assignment, as confirmed by the project.
Disclosed
-
Malicious Market Creators Can Steal Tokens From Unsuspecting Approved Reference Accounts
The sponsor opted to parse a _creator address to PoolTemplate.sol which will act as the depositor and be set to msg.sender in Factory.createMarket(), preventing malicious market creators from forcing vault deposits from unsuspecting users.
Disclosed
-
backdoor in withdrawRedundant
The function should be fixed by restructuring the logic so that the else-if branch only handles tokens other than the vault's main token, and the main token branch only transfers the redundant amount.
Disclosed
-
Admin of the index pool can withdrawCredit() after applyCover() to avoid taking loss for the compensation paid for a certain pool
The project fixed this together with a Peckshield audit issue, likely by locking credit control when the pool is in payout status.
Disclosed
-
Unbounded iteration over all indexes (2)
The array size should be kept small to prevent gas costs from exceeding the block limit.
Disclosed
-
Signature replay
The contract should be fixed by adding a check that the incident timestamp is in the past and that the span is greater than zero.
Disclosed
-
Vault.sol Tokens with fee on transfer are not supported
The code should compare the token balance before and after the transfer and use the actual received amount for attributions and balance; the project said it would address this when building a new vault type.
Disclosed
-
System Debt Is Not Handled When Insurance Pools Become Insolvent
The project should implement a mechanism to repay system debt, such as minting INSURE tokens to cover the shortfall.
Disclosed
-
Index compensate is 0 when totalLiquidity() is enough to cover the whole amount
The reporter suggests redeeming the premium to cover the whole amount, but notes uncertainty about the protocol's intent; the team said it would discuss a fix.
Disclosed
-
Owner can call applyCover multiple times in PoolTemplate.sol
The fix should require that the market be in a Trading state before allowing another applyCover call.
Disclosed
-
repayDebt in Vault.sol could DOS functionality for markets
The repayDebt function should only accept an amount up to and including the borrower's debt, preventing totalDebt from being reduced below zero.
Disclosed
-
requestWithdraw without obligation to withdraw allow underwriter to avoid payout
The lockup period should be extended by at least a factor of 2, or underwriters should be forced to withdraw after the lockup period.
Disclosed
-
A malicious/compromised Registry or Factory admin can drain all the funds from the Vault contracts
The recommendation was to add constraints such as a timelock on supportMarket and an upper bound on borrowValue; the text does not say whether this was implemented.
Disclosed
-
Vault#setController() owner of the Vault contracts can drain funds from the Vault
The setController function should be disallowed from changing an existing controller, or at least be placed behind a timelock; the text does not say it was fixed.
Disclosed