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.
The unlock function in PoolTemplate uses a comparison instead of an assignment, so the insurance status is never set to false. An attacker can call unlock multiple times for the same id, reducing lockedAmount and allowing withdrawal of more underlying tokens than available.
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.
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.
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.
The resume() function in PoolTemplate.sol incorrectly calculates the amount to deduct from each index pool by dividing instead of multiplying by the index's share, leading to excessive deductions. This can cause transactions to revert or unfairly drain funds from specific index pools, causing losses to their liquidity providers.
The index pool admin can withdraw credit from a pool after a cover incident is applied, avoiding responsibility for compensation and shifting the loss to the pool's liquidity providers. This allows the index pool to earn premium without paying its fair share.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The Vault contract lets any address listed as a market in the Registry borrow tokens and send them to any address, with no cap on the amount. A malicious or compromised Registry or Factory admin could register a market and drain all funds held in the Vault.
The Vault contract lets its owner point the controller at any address, and the migration and utilize functions then move all vault funds to that address. A malicious or compromised owner could therefore drain every token held by the vault.
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.
The resume() function in IndexTemplate.sol lacks proper access control, allowing any user, including liquidity providers, to unlock the index pool during the PayingOut period. A malicious LP could call resume() to escape compensation responsibilities, forcing other LPs to pay more.
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.
IC
InsureDAO contest
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.