Skip to content
Business logic Audit finding Advanced

Permanent Bond Lock When PROOF_THRESHOLD = 2 and Only One Proof Is Submitted in AggregateVerifier

When the AggregateVerifier dispute game is configured with a proof threshold of two and only the first proof is submitted, the proposer's bond can never be recovered. The game cannot resolve because the proof count stays below the threshold, and the credit-claim fallback is disabled once the first proof moves the expected-resolution value off its sentinel.

Jornason Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

75433 sc low permanent bond lock when proof threshold 2 and only one proof is submitted in aggregateverifier

Submitted on Apr 29th 2026 at 04:34:48 UTC by @Jornason for Audit Comp | Base Azul

Description

Brief/Intro

When the AggregateVerifier dispute game is deployed with PROOF_THRESHOLD = 2 (the dual-proof configuration that grants 1-day fast finalization) and only the FIRST proof is ever submitted — i.e., a TEE proof via initializeWithInitData(...) lands but no companion ZK proof arrives via verifyProposalProof(...) before the 7-day SLOW window elapses — the proposer's bond becomes permanently irrecoverable. The lock is a deterministic state-machine consequence of three independent facts: resolve() is gated by proofCount >= PROOF_THRESHOLD, claimCredit()'s 14-day fallback is gated by expectedResolution == type(uint64).max (which a single proof submission moves off the sentinel), and self-rescue via nullify() / challenge() requires a counter-proof an honest proposer does not possess. The bond stays trapped in DelayedWETH indefinitely.

Vulnerability Details

Code citations against commit 0618859 of the contracts repo:

  1. _proofVerifiedUpdate (lines 763-770) calls _decreaseExpectedResolution, which moves expectedResolution from type(uint64).max to block.timestamp + SLOW_FINALIZATION_DELAY (7 d) on the first proof.

  2. resolve() (lines 443-474) — when the parent game is healthy (_getParentGameStatus() == DEFENDER_WINS), the function falls through to if (proofCount < PROOF_THRESHOLD) revert NotEnoughProofs;. Multiproof Audit 1 finding #1 already fixed the analogous issue for parent == CHALLENGER_WINS (lines 453-455 short-circuit when parent invalid), but the healthy-parent path retains the unconditional threshold check.

  3. claimCredit() (lines 606-634) — branch:

    Solidity
    if (expectedResolution.raw() != type(uint64).max) {
        if (resolvedAt.raw() == 0) revert GameNotResolved();
    } else {
        if (block.timestamp < createdAt.raw() + 14 days) revert GameNotOver();
    }
    

    Because expectedResolution was moved off the sentinel by step 1, the 14-day fallback never triggers.

  4. challenge() (lines 480-541) and nullify() (lines 548-602) both require a valid counter-proof against an intermediate root that differs from the proposed one (see _checkIntermediateRoot at lines 1001-1006). An honest proposer cannot produce such a counter-proof.

The bond stays escrowed in DelayedWETH (deposited at AggregateVerifier.sol:412). The only recovery paths are DelayedWETH.recover() (privileged ProxyAdmin owner — out-of-scope per Immunefi rules) or per-game blacklistDisputeGame, neither of which is part of normal protocol operation.

This case is NOT covered by Multiproof Audit 1 finding #1. That fix at lines 453-455 only short-circuits when _getParentGameStatus() == CHALLENGER_WINS. The case demonstrated here has a healthy parent and falls through to the threshold revert.

Impact Details

Estimated economic damage

  • Per stuck game: One full proposer bond is locked permanently. Base's DisputeGameFactory.initBonds() for the multiproof game type determines the exact value. The protocol's own test harness (BaseTest.t.sol) uses INIT_BOND = 1 ether as a stand-in. At current ETH prices (~$1,800), each occurrence locks ≥ $1,800 with no recovery path. The actual production bond may be higher — Base has historically used bonds in the 0.08–1 ETH range for its OP-Stack dispute games.
  • Cumulative exposure: A proposer operating a fleet of N concurrent games is exposed to N × bond value. If the ZK prover network goes offline for 24 hours and the proposer has submitted TEE proofs for 10 games in that window, the total locked capital is 10 × bond with zero on-chain recourse.
  • Liveness impact: Repeated bond loss exhausts the proposer's working capital, degrading the chain's L1 finalization liveness. Base currently operates with a small set of Coinbase-run proposers — each lost bond directly reduces available bonding capacity.

Direct impact

  • One full proposer bond is locked indefinitely per occurrence. There is no time-based escape, no self-rescue path, and no on-chain recovery mechanism within the in-scope attack surface.
  • A TEE proposer that submits a proof but loses contact with the ZK prover network (no public-permissionless ZK prover available, ZK service down, network partition) cannot recover its bond.

Indirect impact

  • There is no on-chain economic incentive for a permissionless ZK prover to supply the missing companion proof — submitting it costs gas, salvages someone else's bond, and earns no on-chain reward.
  • Composes with any future PROOF_THRESHOLD = 2 deployment: every active proposer becomes simultaneously exposed.
  • If a proof-system soundness incident triggers IVerifier.nullify() on the ZK verifier, every TEE-only game in flight falls into this lock.

Severity classification

The PDF text of the C6 entry under "Smart Contract — Critical" is: "Permanent freezing of bridge funds / dispute bonds with no recovery." This finding is the literal definition of that text — dispute bonds are permanently frozen, with no on-chain recovery path inside the in-scope attack surface. The DelayedWETH.recover() admin function exists but is privileged and out-of-scope per competition rules.

Recommendation

Two non-mutually-exclusive options, in increasing strength:

Option A — Time-based escape inside resolve()

Add a STALE_GAME_WINDOW (e.g. 14-30 d) that, after expiry with insufficient proofs, resolves the game as CHALLENGER_WINS so the bond is at least claimable through the existing claimCredit() path (or burned, designer's choice):

Solidity
function resolve() external returns (GameStatus) {
    if (status != GameStatus.IN_PROGRESS) revert ClaimAlreadyResolved();
    GameStatus parentGameStatus = _getParentGameStatus();
    if (parentGameStatus == GameStatus.IN_PROGRESS) revert ParentGameNotResolved();

    if (parentGameStatus == GameStatus.CHALLENGER_WINS) {
        status = GameStatus.CHALLENGER_WINS;
    } else {
        if (!gameOver()) revert GameNotOver();
        if (proofCount < PROOF_THRESHOLD) {
+           if (block.timestamp >= createdAt.raw() + STALE_GAME_WINDOW) {
+               status = GameStatus.CHALLENGER_WINS;
+               resolvedAt = Timestamp.wrap(uint64(block.timestamp));
+               emit Resolved(status);
+               return status;
+           }
            revert NotEnoughProofs();
        }
        ...
    }
    ...
}

Option B — Make the claimCredit() 14-day fallback unconditional after the cliff

Solidity
function claimCredit() external nonReentrant {
    if (bondClaimed) revert NoCreditToClaim();

-   if (expectedResolution.raw() != type(uint64).max) {
-       if (resolvedAt.raw() == 0) revert GameNotResolved();
-   } else {
-       if (block.timestamp < createdAt.raw() + 14 days) revert GameNotOver();
-   }
+   bool resolvedNormally = expectedResolution.raw() != type(uint64).max && resolvedAt.raw() != 0;
+   bool fallbackElapsed = block.timestamp >= createdAt.raw() + 14 days;
+   if (!resolvedNormally && !fallbackElapsed) revert GameNotResolved();
    ...
}

Both fixes are localized and consistent with the existing audit-driven design intent (Audit 1's CHALLENGER_WINS short-circuit was clearly meant to ensure bond recovery is always reachable).

References

Repository: https://github.com/base/contracts (Implementation Contracts, in scope per Immunefi competition page)

  • src/multiproof/AggregateVerifier.sol#L443-L474 — resolve() body, threshold revert site
  • src/multiproof/AggregateVerifier.sol#L606-L634 — claimCredit() body, sentinel-gated fallback
  • src/multiproof/AggregateVerifier.sol#L763-L770 — _proofVerifiedUpdate (moves expectedResolution off the sentinel)
  • src/multiproof/AggregateVerifier.sol#L773-L785 — _decreaseExpectedResolution
  • src/multiproof/AggregateVerifier.sol#L412 — bond escrow into DelayedWETH
  • src/dispute/DelayedWETH.sol#L96-L104 — withdraw path showing bonds are stuck without unlock

Audit cross-reference: Multiproof Audit 1 (Cantina, 2026-03-23) — finding #1 ("Unconditional proof threshold check") fixed the parent-CHALLENGER-WINS case only. The healthy-parent case proven here was not covered.

Link to Proof of Concept

https://gist.github.com/Jornason/ee71634a3490f9ea8566228990138361

Proof of Concept

A runnable Foundry test is provided at:

File: contracts/test/multiproof/poc/HypothesisH_B_BondLockSingleProof.t.sol

The test inherits from the protocol's own contracts/test/multiproof/BaseTest.t.sol harness (which already wires up MockVerifier returning true for any input, the AnchorStateRegistry / DisputeGameFactory / DelayedWETH proxy chain, and MockSystemConfig), then redeploys the AggregateVerifier implementation with PROOF_THRESHOLD = 2 and walks the lock end-to-end.

Reproduction

Bash
# One-time setup: install upstream deps
cd contracts
# On Windows, switch git's SSL backend to OpenSSL first to avoid schannel handshake failures:
#   git config --global http.sslBackend openssl
make deps
# If `make` is not in PATH on Windows, copy the forge install commands from contracts/Makefile.

# Run the PoC. FOUNDRY_PROFILE=ci is required because the default `lite` profile fails
# to compile some upstream Safe / OpenZeppelin contracts with stack-too-deep errors.
FOUNDRY_PROFILE=ci forge test \
    --match-contract HypothesisHB_BondLockSingleProof -vv

Expected output (verbatim)

Ran 3 tests for test/multiproof/poc/HypothesisH_B_BondLockSingleProof.t.sol:HypothesisHB_BondLockSingleProof
[PASS] test_HB_secondProof_breaksTheLock_whenAvailable() (gas: 635106)
[PASS] test_HB_singleTEEProof_permanentlyLocksBond() (gas: 593356)
[PASS] test_HB_thresholdOne_singleTEEProof_resolvesCleanly() (gas: 3792559)
Suite result: ok. 3 passed; 0 failed; 0 skipped

What each test asserts

  • test_HB_singleTEEProof_permanentlyLocksBond — the primary PoC. After a single TEE proof is submitted to a PROOF_THRESHOLD = 2 game, the test fast-forwards to the deadline, asserts resolve() reverts with NotEnoughProofs, then advances by 7 d, 14 d, and 1 year — claimCredit() reverts with GameNotResolved at every checkpoint. Final assertion: address(delayedWETH).balance == INIT_BOND, i.e., the bond is still trapped in DelayedWETH.
  • test_HB_thresholdOne_singleTEEProof_resolvesCleanly — sanity check: the same flow with PROOF_THRESHOLD = 1 recovers the bond cleanly, isolating the lock to the threshold = 2 case.
  • test_HB_secondProof_breaksTheLock_whenAvailable — sanity check: a permissionless ZK proof submission via verifyProposalProof unsticks the bond, confirming the lock manifests precisely when no companion proof arrives within the SLOW window.

The original report as published on Immunefi, by Jornason. 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 resolve() function keeps an unconditional proof-threshold check on the healthy-parent path while the first proof disables the time-based claimCredit() fallback, leaving no route to resolve or reclaim the bond.

Impact

One full proposer bond per affected game is locked indefinitely with no in-scope recovery path, and a proposer running many games could lose many bonds at once.

What the attacker needed

Proof threshold set to 2; only one proof submitted; no companion ZK proof within slow window

The fix

The report recommends either a time-based stale-game escape in resolve() or making the claimCredit() fallback unconditional after the cliff; the text does not say it was fixed.

How it was found

  1. Deploy the AggregateVerifier dispute game with a proof threshold of two.
  2. Submit only the first TEE proof via initializeWithInitData, which moves expectedResolution off its sentinel.
  3. Let the slow finalisation window elapse without a companion ZK proof.
  4. Call resolve(), which reverts with NotEnoughProofs because the proof count is below the threshold.
  5. Call claimCredit() after 7 days, 14 days and a year, which reverts with GameNotResolved each time.
  6. Observe the bond balance still held in DelayedWETH.

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 dispute game holds a deposit (a bond) from the person proposing an answer, which they get back once the game finishes. This game needs two separate proofs to finish, but if only one ever arrives, the game never finishes and the code that would return the deposit after a waiting period is switched off, so the money stays 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.

More by Jornason

View all

16 more disclosed reports, best first.

More from Base Azul

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.