Skip to content
Business logic Audit finding Advanced

Unresolved Previous-Period Liabilities Are Reused to Underwrite New Cover, Causing a Valid Claim to Receive Zero Payout

The cover allocator counted all vault assets at the start of a period as available capacity, even though an unresolved incident from the previous period could still claim the same collateral. This allowed new cover to be sold and its premium collected, but when the earlier incident was paid first, a later valid claim against the new cover received zero payout.

SpareBoa11575 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

88411 sc high unresolved previous period liabilities are reused to underwrite new cover causing a valid claim to receive zero payout

Submitted on Aug 13th 2026 at 03:22:09 UTC by @SpareBoa11575 for Audit Comp | Firelight

Description

Brief/Intro

CoverOrderAllocator counts all period-opening vault assets as available capacity even when an active previous-period incident can still claim the same collateral. New cover can therefore be sold and its premium collected before the earlier incident is paid. Once that payment consumes the collateral, a valid claim against the newly sold cover can close with a zero payout, leaving the protocol insolvent.

Vulnerability Details

CoverOrderAllocator._computeAvailableCapacity() treats all vault
assets recorded at the current period start as available collateral:

Solidity
  uint256 totalAssetsCanonical = Decimals.convert(                   
      $.vault.totalAssetsAt($.vault.currentPeriodStart()),           
      $.vaultAssetDecimals,                                          
      CANONICAL_DECIMALS,                                            
      Math.Rounding.Floor                                            
  );                                                                 

commitAllocation() verifies the submitted allocation against this value, but neither commitment nor settlement deducts losses from unresolved previous-period incidents.

This conflicts with the vault's incident handling. FirelightVault treats an active incident from either the current or previous period as unresolved exposure and blocks deposits:

Solidity
  if (_hasActiveIncident()) revert CurrentPeriodHasActiveIncident(); 
                                                                     
  function _hasActiveIncident() internal view returns (bool) {       
      uint256 period = currentPeriod();                              
      return hasActiveIncident[period]                               
          || (period > 0 && hasActiveIncident[period - 1]);          
  }                                                                  

The allocator does not apply an equivalent restriction or reserve when calculating new cover capacity. A previous-period incident remains payable during the following period, so the P1 incident can validly remain active and consume collateral after P2 begins.

The issue occurs as follows:

  1. The vault contains 100 assets, and 100 of P1 cover is settled.
  2. A genuine P1 incident is created with a submitted loss of 100
    against that cover.
  3. The incident remains active when P2 begins. Both the live balance and P2 opening checkpoint still equal 100.
  4. Although the vault blocks new deposits because P1 remains
    unresolved, the allocator counts all 100 assets as P2 capacity.
  5. The allocator commits and settles another 100 of cover. The P2
    buyer pays a nonzero premium and receives a CoverNFT.
  6. The valid P1 assessment is approved and paid first, consuming all 100 vault assets.
  7. A separate valid P2 claim for 100 is later approved. It requests
    100, receives zero, and closes.

Both losses are independently valid: each is bounded by a separate settled cover token and belongs to the corresponding incident period. No claim is duplicated or greater than its allocation, so this is distinct from the disclosed aggregate-claims issue.

It is also distinct from the previously submitted stale-checkpoint issue. Here, both vault.totalAssets() and
totalAssetsAt(currentPeriodStart()) equal 100 when P2 is committed. Replacing the checkpoint value with a live-balance bound therefore still accepts the allocation. Preventing this issue requires reserving unresolved previous-period liabilities or blocking commitment and settlement while such an incident remains active.

Impact Details

At strict 1x capacity, the same 100 assets are used to back both the unresolved P1 loss and 100 of newly sold P2 cover. After the P2 buyer pays a nonzero premium and receives the CoverNFT, P1 consumes all available collateral. The later valid P2 claim requests 100, receive zero, and is closed. The PoC uses no leverage, tolerance, or first- loss-buffer funds.

The shortfall scales with the unresolved previous-period exposure and can affect P2 cover settled against the reused collateral. Both claims are genuine, period-matched, and bounded by separate cover allocations; no trusted role must fabricate or overstate a loss. Selling cover that cannot satisfy a valid approved claim matches the selected Protocol insolvency impact.

References

Capacity calculation using the period-start vault balance

Commitment and capacity validation

Settlement, premium collection, and CoverNFT minting

Vault deposit restriction while current or previous-period incidents remain active

Previous-period incident included in the active-incident check

Previous-period payout window and zero-payment handling

Assessment-loss validation against settled, period-matched cover

Assessment approval, payout execution, and incident closure

Previous-period incidents receive payout priority

Documented off-chain matching and commitment workflow

Link to Proof of Concept

https://gist.github.com/hostas99/0680b4d2ff7253296a951d44354e713a

Proof of Concept

Proof of Concept

The PoC runs entirely on Hardhat's local network against the in-scope Firelight contracts. It does not contact any live deployment.

PoC file:

https://gist.github.com/hostas99/0680b4d2ff7253296a951d44354e713a

Bash
git clone https://github.com/immunefi-team/audit-comp-firelight.git
cd audit-comp-firelight
git checkout 42f9ea5e43d88b35197b901acc2a8c24b314fa62
npm ci

Download unresolvedPreviousPeriodLiability.js from the Gist, place it in test/audit/, and run:

Bash
npx hardhat test test/audit/unresolvedPreviousPeriodLiability.js

Expected result:

Audit: unresolved previous-period incident can consume all collateral settles P2 cover before P1 pays in full, then closes a zero-payout P2 incident

1 passing

The test leaves a valid P1 incident unresolved when P2 begins. Although the vault blocks new deposits because that liability is still active, the allocator reuses the same 100 assets to settle new P2 cover and collects its premium. P1 is then paid in full, consuming all collateral. A separate valid P2 claim subsequently requests 100, receives zero, and closes.

The original report as published on Immunefi, by SpareBoa11575. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the capacity calculation uses the period-start vault balance without reserving for unresolved previous-period incidents, unlike the vault's deposit logic which blocks deposits while such incidents are active.

Impact

The same collateral backs both an unresolved previous-period loss and newly sold cover, so a valid claim against the new cover can close with zero payout, leaving the protocol insolvent.

What the attacker needed

Unresolved previous-period incident; new cover sold in next period; no trusted role needed

The fix

The allocator should reserve unresolved previous-period liabilities or block commitment and settlement while such an incident remains active.

How it was found

  1. The vault contains 100 assets and 100 of P1 cover is settled.
  2. A genuine P1 incident is created with a submitted loss of 100 against that cover.
  3. The incident remains active when P2 begins; both the live balance and P2 opening checkpoint still equal 100.
  4. Although the vault blocks new deposits because P1 remains unresolved, the allocator counts all 100 assets as P2 capacity.
  5. The allocator commits and settles another 100 of cover; the P2 buyer pays a nonzero premium and receives a CoverNFT.
  6. The valid P1 assessment is approved and paid first, consuming all 100 vault assets.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A vault holds money that backs insurance-like cover. The allocator mistakenly treated money already promised to an old, unpaid claim as free to back new cover. So a new buyer paid for cover that could not be paid out, because the old claim took all the money first.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by SpareBoa11575

View all

1 more disclosed report, best first.

More from Firelight

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.