Skip to content

Code4rena

InsureDAO contest

Every publicly disclosed report for InsureDAO contest and what kind of bugs they were.

disclosed reports
21
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find InsureDAO contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what InsureDAO contest chose to make public.

Access control

Tokens can be burned with no access control

The Vault contract's `utilize()` function lacks a check that the `controller` address is non-zero, and if both `keeper` and `controller` are left at their default zero addresses, any address can call `utilize()` to burn the vault's available funds by sending them to the zero address. A user with no debt could lose their entire underlying token balance.

InsureDAO contest

High
Access control

Malicious Market Creators Can Steal Tokens From Unsuspecting Approved Reference Accounts

A malicious market creator can abuse the market creation process to force an approved reference account to deposit tokens into a market they control. This occurs because the deposit is made from an arbitrary reference address, and if that address has given unlimited approval to the vault, the attacker can steal or lock the victim's tokens.

InsureDAO contest

High
Access control

backdoor in withdrawRedundant

The withdrawRedundant function in the Vault contract has flawed logic that allows the owner to transfer all of the vault's underlying token balance to any address. An attacker with owner privileges could steal all user deposits.

InsureDAO contest

High
Audit finding

IndexTemplate.sol#compensate() will most certainly fail

The compensate function in IndexTemplate.sol suffers from precision loss when converting between shares and underlying tokens, causing the transferred amount to be less than the required shortage. This leads to a revert in offsetDebt, preventing the pool from resuming and freezing funds.

InsureDAO contest

High
DoS

Unbounded iteration over all indexes (2)

The smart contract iterates over an array of indexes without a bound, so if the array grows too large, transactions will consume more gas than the block limit and fail. This could cause a denial of service for core functionality.

InsureDAO contest

Medium
Business logic

Initial pool deposit can be stolen

The market creation function allows an attacker to front-run a legitimate market creation and create a market with different parameters, using the victim's pre-approved tokens as the initial deposit. The victim's tokens are transferred into the attacker-created market and effectively lost.

InsureDAO contest

High
Business logic

Signature replay

The redeem method in PoolTemplate verifies insurance data using a Merkle proof that only includes the target and insured addresses, not the incident timestamp. An attacker could reuse a valid proof to call insure with high amounts if the owner creates an incident with a future timestamp.

InsureDAO contest

Medium
Business logic

Vault.sol Tokens with fee on transfer are not supported

The vault's addValue function credits the caller with the full requested amount even when the token actually delivers less because it charges a transfer fee. An attacker could therefore receive more attributions and balance than the tokens they actually contributed.

InsureDAO contest

Medium
Business logic

System Debt Is Not Handled When Insurance Pools Become Insolvent

The smart contract system lacks a mechanism to repay system debt when insurance pools become insolvent after a payout. An attacker could exploit this to leave the system with unrecoverable debt, causing instability.

InsureDAO contest

Medium
Business logic

Index compensate is 0 when totalLiquidity() is enough to cover the whole amount

In the IndexTemplate contract's compensate function, when the requested amount exceeds the value but is still within total liquidity, the compensated variable is never assigned and stays at zero. The function then calls offsetDebt with zero, so the debt offset is not applied as intended.

InsureDAO contest

Medium
Business logic

Owner can call applyCover multiple times in PoolTemplate.sol

The applyCover function lacks a check that the market is in a Trading state, allowing the owner to call it repeatedly and extend the insurance period indefinitely, preventing the market from resuming. This also enables the owner to emit fraudulent MarketStatusChanged events.

InsureDAO contest

Medium
DoS

repayDebt in Vault.sol could DOS functionality for markets

The repayDebt function allows any user to repay any borrower's debt, setting that borrower's debt to zero and reducing totalDebt. If a malicious user repays all borrowers' debts, totalDebt becomes zero, and later attempts to decrease it during borrowing cause an underflow, blocking borrowing functionality.

InsureDAO contest

Medium
Business logic

requestWithdraw without obligation to withdraw allow underwriter to avoid payout

The withdrawal request mechanism lacks an obligation to complete the withdrawal after the lockup period, allowing an underwriter to repeatedly request withdrawal to keep their average lockup period at half the configured lockup. This could let them avoid payouts while still earning premiums.

InsureDAO contest

Medium
Smart contracts

the first depositor to a pool can drain all users

The first depositor into an empty pool can set the total liquidity to a tiny value, so later deposits round down to zero shares. The attacker then holds all shares and can withdraw the combined funds, taking the later depositor's money.

InsureDAO contest

High
Access control

Wrong design/implementation of permission control allows malicious/compromised Registry or Factory admin to steal funds from users’ wallet balances

The Vault contract allows any address registered as a market by the Registry to transfer tokens from any user who has approved the Vault, and assign the attribution to an arbitrary beneficiary. A malicious or compromised Registry owner can register an attacker-controlled address as a market and steal all approved token balances.

InsureDAO contest

High