Claim state poisoning in blocklist rescue permanently freezes a later withdrawal
The blocklist rescue function permanently marks a source account and period as claimed, but the normal withdrawal request path never checks that flag. If the account is unblocked within the same period, a new withdrawal is accepted and the shares are burned, yet both the normal claim and the rescue path then reject it, freezing the funds.
- Disclosed after under an hour
88395 sc high claim state poisoning in blocklist rescue permanently freezes a later withdrawal
Submitted on Aug 13th 2026 at 00:59:52 UTC by @jerrysd for Audit Comp | Firelight
- Report ID: #88395
- Report Type: Smart Contract
- Report severity: High
- Target: https://github.com/immunefi-team/audit-comp-firelight/blob/v1\\_audit\\_ready/contracts/core/FirelightVault.sol
- Impacts:
- Permanent freezing of funds
Description
Brief/Intro
rescueWithdrawFromBlocklisted() permanently marks the source (period, account) as claimed. If the account is unblocked before that period rolls over, redeem() and withdraw() still accept a new request for the same future period and burn the user's shares. At maturity, both the normal claim and the only rescue path reject the newly recorded entitlement with AlreadyClaimedPeriod. The accepted principal is permanently frozen in the vault.
Vulnerability Details
The rescue path moves all current pool shares away from from and sets a terminal flag:
withdrawSharesOf[periods[i]][to] += _withdrawOf;
withdrawSharesOf[periods[i]][from] = 0;
isWithdrawClaimed[periods[i]][from] = true;
However, _requestWithdraw() never checks that flag before adding new shares to the same key:
uint256 period = currentPeriod() + 1;
withdrawSharesOf[period][receiver] += sharesWithdraw;
pendingWithdrawAssets += assets;
_update(owner, address(0), shares);
The claim and rescue exits both reject that new balance:
if (isWithdrawClaimed[period][sender]) revert AlreadyClaimedPeriod(period);
// ...
if (isWithdrawClaimed[periods[i]][from]) revert AlreadyClaimedPeriod(periods[i]);
Impact Details
An unblocked user can lose any new principal withdrawn to the poisoned account during the same vault period. The vault burns the shares and retains the corresponding FXRP, but exposes no call that can claim, move, cancel, or reset the entitlement. The demonstrated 60 FXRP is arbitrary and scales to the user's remaining position.
References
Link to Proof of Concept
https://gist.github.com/JRBusiness/dfeb73aeb4042fe4a9beeedd57ecd3da
Proof of Concept
Proof of Concept
Run from the frozen v1_audit_ready branch:
npx hardhat test --no-compile rescuedWithdrawalClaimPoison.js
The test deposits 100 FXRP, rescues a 40 FXRP future withdrawal through the documented blocklist flow, unblocks the user, and has the user redeem its remaining 60 FXRP into the same future period. The 40 FXRP rescue recipient claims successfully. The 60 FXRP later request remains recorded and funded, but both recovery paths revert:
[claim-poison setup] period=1 firstRescued=40000000 laterAccepted=60000000 sourceClaimed=true
[claim-poison maturity] rescuedClaim=40000000 frozen=60000000 pending=60000000 vaultBalance=60000000
[claim-poison claim] reverted=AlreadyClaimedPeriod
[claim-poison recovery] rescue-retry=reverted AlreadyClaimedPeriod
1 passing
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
The rescue path sets a terminal claimed flag for the (period, account) key, but the withdrawal request function does not check that flag before recording new shares under the same key.
Impact
An unblocked user could permanently lose any new principal withdrawn to the poisoned account during the same vault period, as the vault burns the shares and exposes no call to claim, move, cancel or reset the entitlement.
What the attacker needed
Account is blocklisted then unblocked; rescue performed in same period; user queues new withdrawal in that period
How it was found
- Deposit funds into the vault.
- Rescue a future withdrawal for a blocked account through the blocklist flow, which marks that period and account as claimed.
- Unblock the user.
- Have the user redeem the remaining balance into the same future period.
- At maturity, the rescue recipient claims successfully, but the later request reverts on both the normal claim and the rescue retry.
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 lets people queue a withdrawal for a future period. If an account is blocked, an admin can rescue its queued withdrawal and mark that account as already paid for that period. The bug is that the account can still queue a new withdrawal for the same period afterwards, and the vault takes its shares but then refuses to ever pay it out, so the money is stuck.
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.