When all capital is locked, the pool's total underlying becomes zero while the total supply of STokens remains non-zero. This causes new deposits and protection purchases to revert, halting the protocol until all STokens are burned.
A bug in the premium accrual logic causes protections to never be marked as expired when no payments have been made for a long time. As a result, buyers cannot renew their protections because the renewal check requires an expired protection record.
The function accruePremiumAndExpireProtections() increases the pool's underlying token balance without minting new shares, raising the exchange rate. An attacker can deposit just before this call and withdraw just after to capture a disproportionate share of the premium.
When a protection position is renewed within the grace period, the new insurance starts at the current block timestamp rather than at the previous protection's expiration. This lets a user repeatedly renew at the end of the grace period to obtain free insurance for the grace period's duration.
The lockCapital function in the ProtectionPool contract does not filter out expired protections before calculating the total amount of funds to lock when a lending pool defaults. This can cause more funds to be locked than necessary and expired defaulted protections to be funded, resulting in protection sellers losing more funds.
A malicious seller can burn their NFT after buying protection, causing the protocol's lockCapital() function to revert because it calls ownerOf() on a burned token. This prevents the lending pool from moving to a late state, so all protections expire and the seller keeps the premium while buyers lose compensation.
The renewal function for existing protection buyers calls a check that rejects any lending pool not in the Active state, so a buyer is denied renewal if the pool becomes LateWithinGracePeriod just after their protection expires, even though they are within the grace period. This means a buyer who has paid premiums can lose all protection exactly when a default risk first appears.
The withdrawal delay mechanism in a smart contract can be bypassed because the withdrawal request function does not track previous requests, allowing a protection seller to request withdrawal of their full balance in each cycle and then withdraw at the end of the current cycle instead of waiting for the next cycle.
The Carapace protocol only checked that a single protection did not exceed the loan's remaining principal, but allowed a buyer to purchase multiple protections for the same Goldfinch NFT. An attacker could overprotect a loan position to claim more than they lent on default, or lock all protocol funds to prevent new protections.
The default state manager sets a lending pool's state to 'late' without recording the late timestamp when the pool is first assessed. An attacker can then call the assessment function again to immediately default the pool, rendering it unusable.
The protocol caches pool statuses and only updates them periodically, so a buyer can purchase protection for a pool that is already late on a payment but still appears active. This lets the buyer pay a minimal premium and increase their chance of receiving a compensation.
The `assessState` function can be called by anyone to trigger a pool's transition to the Late state, which snapshots the current sToken holders. An attacker can use a flash loan to acquire sTokens just before this snapshot, then claim a share of any later unlocked capital, stealing from legitimate holders.
The leverage ratio is calculated as unlocked capital divided by total protections, so protections that have locked capital are counted twice: once by locking capital and again by increasing the denominator. This can make protection very expensive or impossible to buy even when the pool is well capitalised.
The contract fails to check that the snapshot ID returned when calculating claimable unlocked capital is non-zero before updating the seller's last claimed snapshot ID. This allows a seller to reset their last claimed snapshot ID to zero and repeatedly claim the same unlocked capital, potentially draining funds.
A user could request withdrawals from multiple addresses using the same STokens because the balance was checked but not locked, allowing them to temporarily inflate the leverage factor and manipulate premium prices. An attacker could use a flash loan to deposit and withdraw in the same transaction, gaining cheaper premiums and potentially disrupting the protocol.
The lending pool state machine checks for the Expired state before Late, so a pool that becomes expired while in a late state never unlocks capital, and a pool that becomes expired without a late transition never locks capital. This can leave capital locked forever or prevent protection buyers from being compensated.
The ProtectionPool contract loops over an unbounded array of protections in two functions, which can cause transactions to exceed the block gas limit and revert. An attacker could stuff the array with many small protections, making critical functions like lockCapital and _accruePremiumAndExpireProtections unusable, potentially denying coverage to buyers.
The premium calculator falls back to the minimum premium whenever the risk factor cannot be calculated, which includes the case where total capital is below the minimum required capital. An attacker could buy protection very cheaply when it should be expensive.
The protection pool's share price can become extremely small after capital is locked, so each new deposit mints a huge number of shares and totalSupply grows exponentially. Eventually the exchange rate can round to zero, blocking all new deposits and halting the pool.
The renewal function did not check the amount of protection being renewed, allowing a user to renew for more protection than originally purchased. An attacker could exploit this to obtain full insurance coverage while paying a minimal premium.
CA
Carapace
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.