Guardian's review of Strike for Strike, published November 2026. The report records 13 findings across 2 review rounds, including 3 high and 6 medium.
See how Guardian runs a smart contract audit.
- Published
- Review window
- October 16 to 27, 2026
- Rounds
- Main Review, Remediation Review
- Language
- Solidity
- 0 Critical
- 3 High
- 6 Medium
- 4 Low
- 0 Informational
Scope
2 files in scope · 561 nSLOC
| File | nSLOC | Lines |
|---|---|---|
contracts/arbitrum/src/CctpDepositRelay.sol | 108 | 237 |
contracts/arbitrum/src/EpochVault.sol | 453 | 792 |
Findings 13
Main Review
5 findings · October 16 to 21, 2026-
H-01 High Attesters accept gaps in v2 history, allowing inflated EpochVault withdrawals accounting Resolved
Description
EpochVault relies on the attester quorum to confirm that each epoch’s balance changes match the public v2 transition log. Each attester records where the last span it signed ended, but
attest_epochrejects the next span only when it starts before that offset:if !exact_retry && span_start < h.end_offsetA span starting after the previous end is accepted. To reach the caller-supplied
v2From, the attester advances its tracker across the intervening frames without including their balance changes in the signed delta list. NeitherEpochPublicnor the attestation signed by the quorum records the v2 interval, soEpochVaultcannot detect the missing history.An epoch producer can use this to skip a frame in which an attacker-controlled account loses funds, then start the next attested span at a later frame that credits the account. Honest attesters derive and sign the deltas from that later span. The v3 proof applies those deltas to the previous v3 root, where the skipped loss was never recorded.
For example, an account with a 1,000 balance loses 1,000 in the skipped frame and receives 1,000 in a later frame. The complete history leaves it with 1,000, but the accepted epoch applies only the later credit and gives it a 2,000 balance. The account can sign a 2,000 withdrawal,
publishEpochaccepts the proof and quorum signatures, and the account claims its own deposit plus another user’s collateral. The attack requires control of the epoch-producing path. The normal keeper then relays the request to the private attesters; no attester key or quorum member must be compromised.Recommendation
Require every non-exact request to start exactly at the attester’s high-water end offset. If an attester missed a published epoch, catch it up by replaying the missed epoch spans in order and matching their delta commitments before returning it to the quorum. Preserve exact retries for requests that were signed but not published.
Resolution
Guardian: The original history-gap path is fixed, but the remediation introduced Rem L-02 and Rem L-03.
-
H-02 High Paginated forced exits can commit an underbacked EpochVault root and stall subsequent publication accounting Resolved
Description
EpochVaultcan accept a valid paginated epoch whose forced-exit entitlements consume funds needed to back the other positive balances committed by the same root. The next page then reverts after the Venue has already advanced to it, stalling further publication. If exodus opens while publication is stalled, users are paid from an underfunded pool and controlled accounts can profit.When
cut_pending_budget()limits an epoch to 1,000 payouts, it carries the remaining deposit-log entries into a later page. It subtracts those carried deposits from the prospective proven account view, but the negative-view guard only runs when signed withdrawals are selected and only clears those withdrawals.cut_with()can therefore derive and adopt a root containing a negative account while the transition separately pays each folded forced-exit requester its entire positive cash balance.EpochVault._payBatch()checks that the vault can cover existing entitlements, the new batch, and unfolded deposits. It does not account for the positive balances committed by the accepted root. This permits the first page to create claimable entitlements using funds still needed to back those balances.With 2,001 exit requests and the production-default 1,000-payout limit:
- The vault holds 62,001 USDC.
- Page one creates 40,448.400000 USDC of entitlements while 21,000 USDC remains unfolded. The required reserve is 61,448.400000 USDC, so
EpochVaultaccepts the page with only 552.600000 USDC left for the root's 20,153 USDC of positive balances. - Page two contains another 11,000 USDC of payouts while 20,000 USDC remains unfolded. Together with the existing entitlements, publication requires 71,448.400000 USDC and reverts with
overcommitted. - The Venue has already adopted and debited page two, while the prover continues retrying that rejected page. Later Venue roots also descend from page two and cannot publish against the page-one root held by
EpochVault.
After the exodus delay, attacker-controlled accounts can claim 40,448.400000 USDC of accepted entitlements and refund 21,000 USDC of unfolded deposits. The attacker controls 10,001 USDC of the remaining positive leaves and receives 274.229772 USDC from exodus. The remaining 152 USDC belongs to the configured treasury, which receives 4.167875 USDC from exodus. The attacker's total recovery is 61,722.629772 USDC after contributing 52,001 USDC, producing 9,721.629772 USDC of profit before gas if the deficit is not recapitalized before exodus; the trading and settlement fees are already reflected in these balances.
An unrelated user whose accepted leaf contains 10,000 USDC receives only 274.202352 USDC from the 552.600000 USDC exodus pool, losing 9,725.797648 USDC. The attacker can open long positions before requesting exit. The requests freeze voluntary trading but leave the positions outstanding, allowing settlement to move the still-unfolded debtor deposit into the frozen requesters before the first page is cut.
Recommendation
Do not adopt a cut when subtracting deposits that remain unfolded and refundable creates a negative prospective balance. Apply this check even when the page contains only forced exits. Because withholding those exits would stall the ordered deposit log, change the pagination or deposit-crediting design so that the backing deposit can be folded before its value is paid or committed elsewhere. Keep local adoption provisional until publication succeeds, or support rollback to the last accepted epoch.
Resolution
Guardian: The original underbacked-root path is fixed, but the remediation introduced Rem H-01, which can still stall publication.
-
M-01 Medium Oversized epoch-data events prevent the emergency client from building exits DoS Resolved
Description
EpochVault emits each epoch's encrypted account rows in on-chain logs so that users can reconstruct an exit without data held by Strike. The public custody guide instructs users to run
strike-exit, and the terminal's downloaded exit kit saves that same command.However,
postEpochDatais permissionless and only requiresepoch > lastEpochand a nonempty chunk. It accepts values outside theuint64epoch domain used by the v3 transition, includingtype(uint256).max, and remains callable afterexodusOpenhas latched.strike-exitfirst retrieves everyEpochDataPostedevent from the requested history. It then converts each event'suint256epoch withto::<u64>()while buildingchunk_logs, before selecting the(epoch, publisher)pairs referenced byEpochPublishedevents. The pinnedruintconversion panics when the value does not fit inu64. Consequently, a single call topostEpochData(type(uint256).max, hex"01")causes every unpatched scan containing that event to terminate before it produces exit calldata.An attacker can submit the event after exodus opens. At that point no later epoch can be published, while choosing a
--from-blockafter the hostile event also removes earlier account rows required to rebuild the frozencurrentRoot. The generated exit kit does not contain a Merkle proof; it directs users to generate one with the affected client.Impact: Positive-balance users cannot generate the Merkle proof needed to exit with the provided recovery tooling until a compatible patched client is available.
Recommendation
Constrain
postEpochDatato the epoch domain used by the transition and recovery client by requiringepoch <= type(uint64).max. -
M-02 Medium An uninitialized attester quorum can re-sign consumed v2 spans economic/accounting Resolved
Description
EpochVaultdoes not record the v2 log position behind its current v3 state. Each attester keeps its last signed position in a localHighWaterfile. If that file is missing,HighWater::load()returnsNone, andattest_epoch()skips both the last-epoch check and the overlapping-span check.If enough active attesters lack this checkpoint to meet the threshold, a compromised venue can build the next v3 epoch from the current v3 root while giving the attesters a previously consumed
v2From/v2Tospan. The normal keeper forwards the venue's epoch request to the private attester endpoints, so the attacker does not need direct access to them. Each uninitialized attester re-derives the historical deltas and signs because it has no record that the span was already used.The normal prover aborts if any contacted attester returns an
INCIDENT, even after collecting a threshold of signatures. The venue-only scenario therefore requires that no contacted signer report an overlap incident.The guest applies those deltas to the current v3 state before processing withdrawals.
EpochVaultchecks the proof, v3 root, epoch number, deposit accumulator and quorum, but it never receives the v2 span. It therefore cannot distinguish this epoch from one built from the next unused span.The attack requires a signing threshold without initialized checkpoints and control of the venue's epoch output, or control of the keeper/prover path together with the current witness data. It must happen before those attesters process a legitimate request. Replacing one signer in a 2-of-3 set is not enough while the other two retain their checkpoints. The same gap exists at deployment:
lastEpoch == 0does not authenticate the v2 position where a new vault should begin.This violates the attester quorum's intended role of preventing a compromised venue or prover from assigning unauthorized deltas: under these conditions, the compromised component can obtain quorum signatures from honest but uninitialized attesters.
Alice starts with 1,000 and Bob with zero. A legitimate 500-unit transfer leaves each with 500. Reapplying that span leaves Alice with zero and Bob with 1,000. If Bob is attacker-controlled, he can sign a 1,000-unit withdrawal, which is 500 more than his legitimate balance and reduces the shared custody backing Alice by 500. Loss is limited by the duplicated credit and available vault custody.
Recommendation
Fail closed if the high-water checkpoint is missing. For a new vault, initialize attesters with an authenticated genesis v2 root and log offset. During rotation or rebuild, use the outgoing quorum’s authenticated checkpoint for the last published epoch. Verify that the local log reaches the checkpoint and keep it current through handover, accounting for intervening publications and outstanding signed requests. Complete initialization before activating enough replacement attesters to meet the threshold.
-
L-01 Low Venue genesis includes a zero-balance maker account that does not match EpochVault.EMPTY_ROOT liveness/accounting Resolved
Description
Venue::with_configalways creates the maker account, andepoch_accountsincludes it even when its cash balance is zero. As a result,epoch_genesisconstructs a non-empty ledger root.EpochVaultinitializescurrentRoottoEMPTY_ROOT, while the first venue epoch uses its generated genesis root asprevRoot. If the current components are deployed together,publishEpochrejects the first epoch withwrong prior root.The genesis mismatch prevents the venue from publishing epochs, blocking normal withdrawals. Depositors can reclaim their deposits directly from the vault after the exodus delay.
Recommendation
Exclude the zero-balance maker account from the venue's epoch genesis, or otherwise ensure the venue begins from
EpochVault.EMPTY_ROOT. Verify the venue genesis root againstEpochVault.currentRootbefore enabling deposits.
Remediation Review
8 findings · October 23 to 27, 2026-
H-01 High Early credit can halt epoch publication when its backing deposit is paginated DoS Reported
Description
credit_cctp_early()andcredit_unswept()add tradeable cash before the backing vault deposit has been folded into an epoch.When the deposit later lands,
credit_vault_deposit()calculates how much was already credited asreleaseand defers onlyamount_usd - release. The full deposit is still appended to the epoch accumulator, and the hold covering the early credit is cleared.If the landing is behind more exit requesters than the next page can service, the deposit remains unfolded.
cut_pending_page()then subtracts the carried deposit from the account's prospective balance. If spending leaves the account without enough previously proven cash to cover the carried deposit, its prospective balance is negative and the cut returnsCarriedDeficit.The failed cut does not advance the accumulator, so later checkpoints continue failing on the same state. Until the state is repaired, epoch publication and withdrawals remain blocked. After
exodusDelay, an outstanding requester can open exodus.A CCTP sequence is:
- The attacker submits enough exit requests from distinct addresses to keep the later deposit beyond the next publishable page.
- The attacker initiates a CCTP deposit. Strike's relayer submits the relay transaction and credits the account once that transaction mines, while the deposit watcher still waits for confirmations.
- The attacker spends part of the early credit before the next cut.
- The watcher records the preceding exit requests and the deposit in their onchain order.
- The next page stops before the deposit and publication is refused with
CarriedDeficit.
With the default limit, slightly more than 1,000 requesters can trigger the condition if the watcher catches up before a checkpoint consumes the backlog. Additional requests provide timing margin. The project's gas measurements estimate that roughly 1,280 payouts fill a block, so a larger backlog can also prevent recovery by simply raising the page limit.
This failure mode was introduced by the H-02 remediation. The remediation defers ordinary deposits that fall outside the next page, but does not prevent the released portion of an early-credited deposit from being spent before that deposit folds.
Recommendation
Do not make early credit tradeable until the backing deposit's onchain position is known and the venue has synchronized enough preceding log entries to confirm that the deposit fits within the next publishable page.
For CCTP, perform this check using the mined relay transaction's deposit index before releasing the credit. For Hyperliquid, keep the credit pending until the sweep position is known. If the deposit is outside the page, retain the amount as non-tradeable credit and release it when the deposit folds.
Ensure the early-credited amount is released only once rather than deferring the full deposit and crediting it again. Retain
CarriedDeficitas the final safety check. -
M-01 Medium Epoch artifacts and exit debits are not committed with their checkpoint DoS Reported
Description
The venue commits its snapshot and epoch accumulator as one checkpoint generation, but the epoch anchor and the corresponding
exit-paidWAL record are not part of that commit.After a cut,
epoch_merge()installs the post-cut accumulator in memory and pays serviced exits.pay_serviced_exits()debits and unfreezes the accounts, then appends anexit-paidrecord to the fresh WAL.persist_epoch_checkpoint()next writes the witness, public inputs and anchor beforecheckpoint_files_staged()installs the corresponding snapshot and accumulator. The shipper treats the anchor as proof that the epoch is complete.If the venue stops after the anchor is written but before the checkpoint is committed, startup restores the previous snapshot and accumulator while the fresh WAL replays
exit-paid. The account is debited and unfrozen, but its exit remains pending in the restored accumulator. The next and subsequent cuts fail withNotConserved, preventing further epoch publication. The orphaned anchor also remains eligible for shipping and can advance the onchain epoch to a root the restored venue did not adopt.A second mismatch occurs if the
exit-paidappend fails.pay_serviced_exits()has already changed the live account, whileWal::append()only logs the error and returns. The checkpoint can therefore commit the post-cut accumulator and anchor alongside the pre-debit snapshot without the WAL record needed to reconstruct the debit.If the process restarts before another checkpoint captures the in-memory change, the account returns with its pre-debit balance and frozen exit while the accumulator considers that exit serviced. Publication leaves the venue account state inconsistent with the onchain entitlement. Rejection rolls the epoch back and credits the exit amount onto the already restored balance, doubling the account balance.
Recommendation
Stage the epoch witness, public inputs and anchor with the checkpoint. Expose the anchor to the shipper only after the snapshot and accumulator generation has been committed. Include the generation in the artifact metadata so startup can finish exposing an adopted epoch after a crash and ignore an artifact that belongs to an unadopted generation.
Make the exit-payment effect part of that same durable generation. If it remains WAL-backed, require the
exit-paidappend to succeed before committing the post-cut accumulator, identify the record with its checkpoint generation and replay it only when the installed snapshot adopts that generation. An append failure must abort the checkpoint without exposing its anchor. -
M-02 Medium Fast Hyperliquid payouts can spend an unfolded EpochVault deposit Business logic errors Reported
Description
request_hl_payout_held()callsproven_hole()beforemove_hl_payout_cash()debits the requesting account. The payout can pass the check and create a deficit in the proven-view calculation afterward.A wallet remains eligible for payouts after its first deposit has been folded, even if its current proven balance is zero. It can then:
- Make a direct EpochVault deposit of
D. - Wait for the venue to credit the deposit while it remains pending in the epoch accumulator.
- Request a Hyperliquid payout of
D.
free_to_withdraw()returnsDbecause the deposit has reached EpochVault and is no longer unswept or in flight. Before the payout,proven_hole()calculates the account's proven balance as cashDminus pending depositD, which is zero.The payout then debits
Dfrom the account. Its cash becomes zero while the pending deposit remainsD, so the proven-view calculation becomes negativeD.If a later epoch folds the deposit, the deficit is cleared. If publication remains stalled until exodus opens, the keeper has already sent
Dfrom the operator's Hyperliquid float and the user can recover the deposit throughrefundUnfoldedDeposit(). The user receives both amounts, and the operator's float losesD.Recommendation
Evaluate the payout against the hypothetical post-transfer state before consuming a payout ID, writing the WAL event, moving cash or creating the payout. Apply the user debit and payout-account credit to temporary balances, then run
proven_hole()against those balances.Use the last onchain-accepted accumulator for this check. A deposit folded only by an epoch awaiting publication must remain unavailable because rejecting that epoch restores the deposit to the pending set.
- Make a direct EpochVault deposit of
-
M-03 Medium Stale rejection shadows an identical-root re-cut and deadlocks epoch publication state-machine Reported
Description
With EPOCH_AWAIT_PUBLISH enabled, rollback caches a rejected (epoch, next_root), but adopting a replacement cut does not invalidate that resolution. An unchanged replacement can produce the same root when it applies the same state transition and selects the same posted rows. This is guaranteed when no padding choice exists, such as when no keyed padding is required or every eligible keyed account must be selected. It also remains possible when randomized padding selects the same account set. check_outcome checks the historical resolution before the new live undo: a repeated rejection returns Ok(false), while a published report returns Conflict. Neither clears the undo, and epoch_capture refuses all subsequent cuts. proverd reinforces this state by recognizing the root-keyed rejection file and re-reporting it before attestation or proving.
Impact: A recoverable rejection can halt epoch publication and withdrawal servicing until operators manually repair the venue. Later deposits, withdrawals, exit requests and heartbeats cannot be folded, and a restart preserves the stalled state. If publication remains stalled beyond
exodusDelay, the vault can enter exodus.Recommendation
Assign every adopted cut a persistent generation identifier and include it in the live undo, outcome reports, WAL records and prover rejection records. Match outcomes against the current generation before applying historical deduplication, and invalidate or version the previous resolution when adopting a replacement cut. Reuse a rejection only when it belongs to that exact cut generation, rather than matching on nextRoot alone.
-
M-04 Medium Deferred credits can be spent before their release is durable crash-consistency Reported
Description
release_epoch_creditmakes deposits spendable when the next epoch page can fold them. During checkpoint capture, it adds each released amount to the account's cash and removes the corresponding entry fromepoch_deferred.That state change is not written to the WAL. It becomes durable only when the snapshot copied during the checkpoint is written after the checkpoint pause. In the meantime, the venue resumes processing requests. A withdrawal can spend the released balance and be recorded in the new WAL before the snapshot is durable.
If the venue crashes during this window, recovery loads the previous snapshot, where the deposit is still deferred, and then replays the withdrawal. The account is reconstructed with negative cash even though the same deposit remains waiting in
epoch_deferred. If maintenance runs before the next checkpoint releases the credit again,cover_deficittransfers insurance funds into this artificial deficit.The v2 proof state has already accounted for the deposit and withdrawal, so it does not consider the account negative. It rejects the resulting
CoverDeficitevent, leaving the engine ledger ahead of the provable ledger.Impact: A checkpoint crash can cause insurance funds to cover a deficit that does not exist and halt epoch publication and dependent withdrawals until the operator repairs the recovered state.
Recommendation
Make each deferred-credit release durable before exposing the released cash to withdrawals or trading. For example, append and sync an idempotent release record keyed by the deposit position before crediting the account and removing its deferred entry, then apply that record exactly once during replay. Alternatively, keep the released amount unavailable until the snapshot containing both state changes has committed.
-
L-01 Low Later withdrawals from a serviced exit account are falsely marked committed Business logic errors Reported
Description
When a provisional epoch services a forced exit,
pay_serviced_exits()immediately unfreezes the account. The account can then receive new funds and submit another withdrawal while the epoch waits for publication.When the earlier epoch is published,
apply_epoch_outcome()first marks its signed withdrawals using their exact address and nonce. It then handles forced exits by marking every currently requested withdrawal belonging to each serviced address as committed.This includes withdrawals created after the epoch was cut. Those withdrawals were not included in the published epoch, but they are assigned its transaction hash and reported as committed.
The withdrawal remains in the epoch accumulator and can still be paid by a later epoch, so this does not directly lose or duplicate funds. However, its status and transaction attribution are incorrect, and it is excluded from pending-withdrawal and reserve reporting while still unpaid.
Recommendation
Record the exact withdrawal IDs covered by each forced exit when the epoch is captured. Store those IDs in the undo record and mark only those withdrawals as committed when publication is confirmed.
-
L-02 Low One stale attester can block the 2-of-3 publisher after an epoch replacement DoS Reported
Description
An attester saves its high-water mark when it signs an epoch. If that epoch is permanently rejected, the attester can sign its replacement while the vault is still at the previous epoch.
If the attester is unavailable while the other two attesters sign and publish the replacement, its high-water mark continues to reference the rejected root. When it returns for the following epoch,
check_continuity()compares the request's previous root with the rejected root and returns anINCIDENT.The attester cannot recover by receiving the replacement after publication because
replaces_refused()only accepts it while the vault remains at the previous epoch.gather_attestations()aborts when any configured attester returns anINCIDENT, even when the other two signatures satisfy the configured 2-of-3 threshold. One stale attester can therefore stop further publication until operators remove it from the configuration or repair its high-water mark.This requires a permanently rejected epoch and one attester missing its replacement. It is not directly triggerable by an ordinary user.
Recommendation
Allow an attester to catch up after missing a replacement when the vault confirms that the replacement was published. The attester should verify the published epoch against its recorded starting state before advancing its high-water mark.
Until it has caught up, treat this specific state as a stale signer and continue with a valid threshold. Continue aborting on other continuity incidents that cannot be verified against the vault.
-
L-03 Low Unpaginated
EpochPublishedlookups can stall epoch attestations on range-capped RPCs availability ReportedDescription
EpochVault::published_epoch()queriesEpochPublishedlogs fromEPOCH_VAULT_FROM_BLOCKthrough the latest block in a singleeth_getLogsrequest. Configuring the start as the vault's deployment block reduces the initial range but does not bound it as the chain grows.The attester-continuity remediation uses this lookup to verify that its last signed epoch matches the epoch accepted by
EpochVault. When the requested range exceeds the RPC provider's limit, the attester returns a retryable error. If enough attesters use affected endpoints, the prover cannot gather a quorum, and each retry repeats the same oversized query. Prover reconciliation and checkpoint recovery use the same lookup.Impact: On deployments whose attester quorum relies on range-capped RPC endpoints, normal chain growth can stop new epoch publication until operators change providers or repair the lookup. Deposits, withdrawals, and other state transitions that require a new epoch remain pending during the outage.
Recommendation
Query
EpochPublishedlogs in bounded block ranges. Persist the block number of each accepted epoch so subsequent continuity checks can query that block directly, and use the same bounded lookup during attester catch-up, checkpointing, and prover reconciliation.
No findings match.
Put your code through the same review.
This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.