Skip to content
Business logic Audit finding Advanced

Rc 28 zk interval mismatch prevents dual proof fast finality

The rc.28 ZK proof service hardcodes a 10-block intermediate-root interval while the deployed AggregateVerifier expects 30-block roots, so a valid ZK proof commits a different journal than the contract hashes. This prevents the second proof from being accepted, keeping games on the 7-day single-proof path instead of the 1-day dual-proof path.

cgdusek Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

75249 sc medium rc 28 zk interval mismatch prevents dual proof fast finality

#75249 [SC-Medium] rc.28 ZK interval mismatch prevents dual-proof fast finality

Submitted on Apr 28th 2026 at 01:57:48 UTC by @cgdusek for Audit Comp | Base Azul

Description

Vulnerability Report

Selected fields

  • program: Base Azul
  • category: Smart Contract
  • asset: base/contracts v8.1.0 src/multiproof
  • supporting assets:
  • impact: High: Temporary freezing of funds for at least 24 hours (e.g., stuck withdrawal proofs, locked dispute game bonds)
  • title: rc.28 ZK interval mismatch prevents dual-proof fast finality

Executive summary

base/base v0.8.0-rc.28 hardcodes OP-Succinct's DEFAULT_INTERMEDIATE_ROOT_INTERVAL=10 when generating ZK witnesses, while the active Base Sepolia Azul type-621 AggregateVerifier is configured with INTERMEDIATE_BLOCK_INTERVAL=30.

For a 30-block challenge or full proposal proof, the ZK program commits a journal containing 10-block intermediate roots, but the contract verifies a journal containing 30-block roots. The valid ZK proof therefore cannot match the onchain journal needed to add the second proof, leaving games on the single-proof 604800 second path instead of the dual-proof 86400 second path and adding 518400 seconds of finality delay.

Classification and scope justification

Exact program criteria match

  • asset name(s) exactly as listed on scope page: Smart Contract - base/contracts v8.1.0 src/multiproof selected; Blockchain/DLT - base/base v0.8.0-rc.28 and Smart Contract - base/contract-deployments as supporting evidence assets
  • specific scoped asset(s) supporting this severity claim:
  • exact current Immunefi scope picker URL(s) supporting this severity claim:
  • selected online form category: Smart Contract
  • selected online form asset: base/contracts v8.1.0 src/multiproof
  • exact current Immunefi scope picker URL for selected form asset: base/contracts v8.1.0 src/multiproof
  • selected severity from scope page: High
  • selected impact title from scope page: Temporary freezing of funds for at least 24 hours (e.g., stuck withdrawal proofs, locked dispute game bonds)
  • exact scope wording: Runnable PoC Required; the scope page lists Offchain Components, Base Azul, and Implementation Contracts; the online form requires the Smart Contract category to select the temporary-freezing-of-funds impact, so this submission selects the multiproof contract asset that realizes the finality/withdrawal delay while retaining base/base v0.8.0-rc.28 as the supporting root-cause asset
  • scope page last checked: 2026-04-28
  • why this matches the demonstrated consequence: the PoC proves an additional 518400 seconds of finality delay for games that cannot receive the ZK second proof, which exceeds 24 hours and directly affects withdrawal proof readiness and dispute game bond finality.

Why higher or adjacent criteria do not fit

  • closest higher severity criterion considered: Forging or bypassing TEE or ZK proof verification in AggregateVerifier to finalize an invalid state root on L1
  • why the report does not satisfy it: this report proves valid ZK proof unusability caused by a journal mismatch. It does not prove verifier bypass, forged proof acceptance, finalized invalid state, direct bridge theft, or permanent freezing.
  • closest adjacent same/lower criteria considered:
    • Circumventing the dispute/challenge mechanism to prevent correction of an invalid proposal before finalization
    • Permanent freezing of funds in the bridge or in dispute game bonds with no available recovery path
    • Temporary freezing of network transactions by delaying one block by 500% or more of the average block time of the preceding 24 hours beyond standard difficulty adjustments
  • why the selected criterion fits better: the proven effect is a time-bounded finality delay for proofs, withdrawals, and dispute-game bonds. It is not a chain-transaction halt, an invalid-state finalization path, or a no-recovery permanent freeze.

Out-of-scope exclusion check

  • relevant out-of-scope exclusions reviewed: compromised Base-operated infrastructure, relying on invalid TEE/ZK proofs, assuming Base will not dispute/blacklist/retire invalid proposals, assuming services will not be restarted with different configuration, out-of-scope base/base folders, and core Op-Succinct/circuit root causes.
  • excluded assumptions not used by this exploit: the PoC does not require leaked keys, privileged addresses, signer compromise, public testnet writes, mainnet writes, invalid proof acceptance, governance action, sequencer behavior, or a claim that Base cannot manually restart services. The report is limited to the release-pinned rc.28 integration mismatch and its deployed AggregateVerifier finality consequence.

Finding details

Public documentation invariant

Public evidence checked on 2026-04-27:

  • The live Audit Comp | Base Azul scope page lists Offchain Components, Base Azul, and Implementation Contracts as in-scope assets; marks the competition as requiring a runnable PoC; identifies proof-system integration, TEE/ZK dispute game submission logic, verifier contract bugs, and ZK recursion soundness as primary concerns; and explains that Base Azul replaces optimistic fault proofs with a TEE + ZK dual-proof system for faster finality.
  • The same live scope page states that the competition environment is Base Sepolia post-April 20 Azul activation, that public Base mainnet is not in scope, and that the core Op-Succinct program is out of scope while Base changes around it are in scope.
  • The Base V1 proof documentation defines a long 7 days settlement path for TEE-only or ZK-only proposals and a short 1 day path when TEE and ZK both back the same proposal.
  • The same V1 documentation describes ZK provers as the permissionless proving backend, including dispute/backstop use.
  • AggregateVerifier hashes the contract-supplied intermediate roots into the ZK verifier journal in _verifyZkProof(), and its delay logic uses 1 days for the fast path and 7 days for the slow path.

The resulting invariant is inference-backed from the linked public docs and source: a valid rc.28 ZK proof generated for the active contract interval must commit the same intermediate-root vector that AggregateVerifier hashes into the verifier journal. This vulnerability breaks that invariant because the rc.28 proof service records 10-block roots while the active contract verifies 30-block roots. The trust boundary is narrow: the report does not assume the common proposer path must start with ZK, and it does not rely on core Op-Succinct or circuit bugs; it relies on Base's in-scope rc.28 integration passing the contract interval consistently into the proof-service journal.

Root cause

OpSuccinctProvider::generate_witness() calls get_sp1_stdin() with DEFAULT_INTERMEDIATE_ROOT_INTERVAL, and that constant is 10. The challenge driver sets number_of_blocks_to_prove from the candidate's contract interval, but the ProveBlockRequest has no field for the intermediate-root recording interval, and build_zk_request() cannot pass it.

The range client records an intermediate root whenever blocks_processed.is_multiple_of(interval) in advance_to_target(). The aggregation program then concatenates all range intermediate roots and commits the packed digest in aggregation/src/main.rs.

Strongest demonstrated exploit path

  1. A type-621 AggregateVerifier game is created with INTERMEDIATE_BLOCK_INTERVAL=30.
  2. A permissionless ZK proof is requested as the second proof needed for the fast-finality path.
  3. For a full 600-block proposal proof, the contract-side journal contains 600 / 30 = 20 intermediate roots, while rc.28 records 600 / 10 = 60 roots because the proof service uses DEFAULT_INTERMEDIATE_ROOT_INTERVAL=10.
  4. The same source-level mismatch also applies to a 30-block challenge subrange (3 rc.28 roots versus 1 contract root), but the runnable artifact anchors the full-proposal second-proof path.
  5. _verifyZkProof() hashes the contract-side root vector into the ZK journal and calls ZK_VERIFIER.verify. A proof generated for the rc.28 10-block journal is rejected under the onchain 30-block journal.
  6. Without the second proof, _getDelay() keeps the game on the SLOW_FINALIZATION_DELAY path and _getDelay() returns 7 days for one proof and 1 day for two proofs.

PoC-backed proof chain

The PoC package at the secret gist generates two real SP1 Groth16 proofs for an equivalent aggregate-journal program, then verifies them through release-pinned Base ZkVerifier code. It prints:

  • POC_RESULT: REAL_ZK_PROOF_SYSTEM=SP1 Groth16
  • POC_RESULT: SP1_PROGRAM_VKEY_BYTES32_FORMAT=true
  • POC_RESULT: PUBLIC_SEPOLIA_ZK_AGGREGATE_HASH_BYTES32_FORMAT=true
  • POC_RESULT: PROGRAM_VKEY_DIFFERS_FROM_PUBLIC_SEPOLIA=true
  • POC_RESULT: ONCHAIN_SP1_PROOF_BYTES_PRESENT=true
  • POC_RESULT: RC28_SP1_PROOF_BYTES_PRESENT=true
  • POC_RESULT: SP1_CONTRACTS_COMMIT_MATCH=true
  • POC_RESULT: BASE_CONTRACTS_COMMIT_MATCH=true
  • POC_RESULT: ZK_VERIFIER_ONCHAIN_PROOF_ACCEPTED=true
  • POC_RESULT: ZK_VERIFIER_RC28_PROOF_ACCEPTED_WITH_RC28_JOURNAL=true
  • POC_RESULT: ZK_VERIFIER_RC28_PROOF_ACCEPTED_WITH_ONCHAIN_JOURNAL=false
  • POC_RESULT: ZK_VERIFIER_PUBLIC_SEPOLIA_VKEY_ACCEPTED=false
  • POC_RESULT: FULL_PROPOSAL_ONCHAIN_ROOT_COUNT=20
  • POC_RESULT: FULL_PROPOSAL_RC28_ROOT_COUNT=60
  • POC_RESULT: FULL_PROPOSAL_DIGESTS_EQUAL=false
  • POC_RESULT: ADDITIONAL_WITHDRAWAL_FREEZE_SECONDS=518400
  • POC_RESULT: ADDITIONAL_WITHDRAWAL_FREEZE_GE_24H=true
  • POC_RESULT: INTERVAL_MISMATCH_PROVEN=true
  • POC_RESULT: HIGH_TEMPORARY_FREEZE_CANDIDATE=true

PoC setup conditions

The PoC runs in an isolated reviewer environment. It does not call RPC, deploy to a public network, submit transactions, use privileged addresses, or depend on a public network fork. It clones release-pinned base/contracts v8.1.0, generates two SP1 Groth16 proofs during execution for the aggregate-journal shape, deploys the release-pinned SP1 Groth16 verifier and Base ZkVerifier inside Foundry execution, and checks the rc.28 proof rejection under the onchain 30-block journal.

Meaning of valid ZK proof in this report

Within the public-boundary PoC, valid ZK proof means verifier-valid under the same vkey type and verifier interface used by the scoped Base contracts:

  1. The proof bytes are generated by SP1 Groth16 for a concrete aggregate-journal program and concrete public inputs.
  2. The public journal is the AggregateVerifier ZK journal shape: proposer, l1OriginHash, starting and ending roots, starting and ending L2 sequence numbers, intermediate roots, CONFIG_HASH, and ZK_RANGE_HASH.
  3. The vkey is a bytes32 SP1 program verification key passed to the release-pinned upstream ZkVerifier.verify(proofBytes, imageId, journal) path, the same Solidity type and verifier interface used for Base Sepolia's ZK_AGGREGATE_HASH.
  4. The release-pinned upstream ZkVerifier accepts each proof when the proof is paired with the journal it proves.
  5. The rc.28 proof is rejected when paired with the onchain 30-block journal, which is the contract journal needed for the second proof.

The vkey has the same encoding, Solidity type, and verification-call semantics as the public Sepolia aggregate vkey. The difference is the vkey value, which identifies an equivalent aggregate-journal SP1 program rather than Base Sepolia's deployed aggregate program. This report does not use valid to mean accepted by Base Sepolia's deployed aggregate vkey. Proving that deployment-specific condition would require Base's production aggregate SP1 program and proving inputs that produce proof bytes verifying against public Sepolia's ZK_AGGREGATE_HASH.

Exploit preconditions

  • The active AggregateVerifier remains configured with INTERMEDIATE_BLOCK_INTERVAL=30.
  • A participant attempts to use rc.28's ZK proof service as the permissionless ZK dispute/backstop path or as the second proof path for fast finality.
  • The proof must be generated honestly; the failure is a journal mismatch, not an invalid-proof bypass.
  • The issue is operator-remediable by redeploy/code config, not user-remediable by existing runtime configuration: the active contract interval is immutable deployment configuration, while rc.28's proof request path does not expose an intermediate-root interval that a participant can set.

Deployment and in-scope surface

The active rc.28 source is base/base v0.8.0-rc.28 at commit e3467a2048881213b56739a54a876efb9c6ea103, matching the Immunefi mid-contest update to the rc.28 tree. Deployment material shows BLOCK_INTERVAL=600, INTERMEDIATE_BLOCK_INTERVAL=30, and PROOF_THRESHOLD=1 in the multiproof activation environment, and the later AggregateVerifier redeploy script preserves the existing verifier, hashes, intervals, and threshold with post-checks for the same values at lines 99-109.

Read-only Base Sepolia checks on 2026-04-27 found the active type-621 implementation at 0xF3f0fA3124b7b0feB048A00404Fe4D5D49E60796, INTERMEDIATE_BLOCK_INTERVAL=30, BLOCK_INTERVAL=600, PROOF_THRESHOLD=1, ZK_VERIFIER=0xF9780104117C0FaD3A9b1386FbF40a9F5857988A, and no pause on the respected game type. OptimismPortal2.checkWithdrawal() depends on anchorStateRegistry.isGameClaimValid() before finalization, and AnchorStateRegistry.isGameClaimValid() requires the game to be finalized and defender-won at lines 311-335.

Fresh public-source and Base Sepolia checks on 2026-04-28 did not identify a public fix in the current public base/base main branch and confirmed the mismatch is still present in the testnet competition environment. The latest public main commit checked was 4b389f03b4963ec7bbb4d024445af6281a90d9a8; at that commit, OpSuccinctProvider::generate_witness() still passes DEFAULT_INTERMEDIATE_ROOT_INTERVAL into get_sp1_stdin(), the public ProveBlockRequest still has no intermediate-root interval field, and the default interval remains 10. Read-only Base Sepolia calls at block 10746130 (2026-04-28T01:32:24Z) still returned gameImpls(621)=0xF3f0fA3124b7b0feB048A00404Fe4D5D49E60796, INTERMEDIATE_BLOCK_INTERVAL=30, BLOCK_INTERVAL=600, PROOF_THRESHOLD=1, ZK_AGGREGATE_HASH=0x0020f5df94945d8d40bc2b11128cbf2535565f5cde58960029017ee2ccef46d7, respectedGameType=621, and paused=false. This confirms the bug-relevant mismatch is still deployed on Base Sepolia, while not ruling out private unpublished fixes.

Public-known / duplicate boundary

I did not identify a public disclosure for this exact rc.28 proof-service interval mismatch. The live Immunefi page checked on 2026-04-28 lists public known issues and audit references, and states that publicly disclosed bugs or unfixed issues mentioned in prior audits are not eligible. This report is distinct from generic ZK prover/circuit issues because the root cause is the Base rc.28 integration path: the request surface cannot pass the contract's active intermediate-root interval to the proof service.

Repository, file, and line of code where finding is found

Steps to replicate

All testing was performed in an isolated reviewer-style environment. I did not use mainnet or public testnet.

  • secret gist: PoC gist
  • PoC name: RC28IntervalMismatchRealSP1PoC
Bash
bash run_poc.sh

Expected high-signal output markers:

  • POC_RESULT: REAL_ZK_PROOF_SYSTEM=SP1 Groth16
  • POC_RESULT: ZK_VERIFIER_RC28_PROOF_ACCEPTED_WITH_ONCHAIN_JOURNAL=false
  • POC_RESULT: FULL_PROPOSAL_DIGESTS_EQUAL=false
  • POC_RESULT: ADDITIONAL_WITHDRAWAL_FREEZE_SECONDS=518400
  • POC_RESULT: ADDITIONAL_WITHDRAWAL_FREEZE_GE_24H=true
  • POC_RESULT: INTERVAL_MISMATCH_PROVEN=true
  • POC_RESULT: HIGH_TEMPORARY_FREEZE_CANDIDATE=true

Impact of finding

Short term

Permissionless ZK backing for active 30-block dispute/proposal intervals cannot supply the second proof that shortens finality from 604800 seconds to 86400 seconds. Affected games remain in the one-proof path for an additional 518400 seconds, delaying withdrawal finalization and dispute-game bond finality by more than 24 hours.

Long term

If rc.28 is used as the ZK proof-service path without an interval fix, the ZK backstop/fast-finality lane remains unusable for the active interval. This report does not claim permanent freezing, invalid state finalization, direct theft, or total network shutdown.

Mitigation suggestions

  • Add an explicit intermediate-root interval field to ProveBlockRequest and populate it from the candidate/onchain INTERMEDIATE_BLOCK_INTERVAL.
  • Refuse to submit a ZK proof when the generated intermediate-root count does not match the target AggregateVerifier's expected interval.
  • Add regression tests for 30-block challenge proofs and 600-block full proposal proofs where the ZK service and AggregateVerifier journal digests must match.
  • As an operational mitigation boundary, treat this as operator-remediable by redeploy/code config, not user-remediable by existing runtime configuration.

Optional suggested patch

Treat DEFAULT_INTERMEDIATE_ROOT_INTERVAL only as a fallback for standalone tests. Production proof requests should carry the onchain interval through the challenger, prover API, witness-generation call, and aggregation input.

Comparable public incidents

Not used. This report is source and PoC driven.

References

Runnable PoC package

  • secret gist: PoC gist
  • PoC name: RC28IntervalMismatchRealSP1PoC

Live deployment / release confirmation

Relevant code paths

Scope / rules

Public protocol documentation

Additional context / provenance

Submission notes

  • selected scope criterion: High - Temporary freezing of funds for at least 24 hours (e.g., stuck withdrawal proofs, locked dispute game bonds)
  • online form category: Smart Contract
  • online form asset picker selection: base/contracts v8.1.0 src/multiproof
  • specific scoped assets carrying the claim:
  • severity anchor: 518400 additional seconds of finality delay, exceeding 24 hours
  • breadth-only variant: the 30-block challenge path has the same interval mismatch by source/code path; the runnable severity anchor is the full 600-block proposal second-proof path
  • explicitly not claiming: Critical proof forgery/bypass, finalized invalid state, direct theft, permanent freezing, chain shutdown, public-network exploitation, or invalid proof reliance

Link to Proof of Concept

https://gist.github.com/cgdusek/43cde38ec160412f84fa5eaf687f8181

Proof of Concept

PoC Specification

Command

Bash
bash run_poc.sh

Run from the secret gist root after downloading the gist files into one directory. The command performs an isolated reviewer-environment execution. It requires forge, Rust/Cargo, protoc, Go, outbound internet for first-run source/tool/circuit downloads, and enough disk and memory for SP1 Groth16 proving. It does not require SEPOLIA_RPC_URL, a wallet, a private key, a funded account, public-network writes, or an external proof fixture.

Version Gate

The runner prints and enforces:

  • POC_RESULT: BASE_BASE_SCOPE_TAG=v0.8.0-rc.28
  • POC_RESULT: BASE_BASE_SCOPE_COMMIT=e3467a2048881213b56739a54a876efb9c6ea103
  • POC_RESULT: BASE_CONTRACTS_TAG=v8.1.0
  • POC_RESULT: BASE_CONTRACTS_COMMIT_EXPECTED=01dad230390cd69bcf130b5fc7a7a580b31650a7
  • POC_RESULT: BASE_CONTRACTS_COMMIT_MATCH=true
  • POC_RESULT: SP1_VERSION=v6.1.0
  • POC_RESULT: SP1_CONTRACTS_COMMIT_MATCH=true

What the runner does

{% stepper %} {% step %}

Writes an SP1 program

Writes a small SP1 program that commits the same aggregate-journal preimage shape that Base AggregateVerifier._verifyZkProof(...) hashes: proposer, L1 origin hash, starting root/number, ending root/number, intermediate roots, CONFIG_HASH, and ZK_RANGE_HASH. {% endstep %}

{% step %}

Generates the onchain proof

Generates a real SP1 Groth16 proof for the contract-side full proposal vector: 600 / 30 = 20 intermediate roots. {% endstep %}

{% step %}

Generates the rc.28 proof

Generates a real SP1 Groth16 proof for the rc.28 proof-service vector: 600 / 10 = 60 intermediate roots. {% endstep %}

{% step %}

Writes the fixture

Writes bo

The original report as published on Immunefi, by cgdusek. 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 proof request message has no field for the intermediate-root interval, so the proof service falls back to a hardcoded default of 10 instead of the contract's configured 30.

Impact

Games that cannot receive the ZK second proof stay on the single-proof path, delaying withdrawal finalisation and dispute-game bond finality by an additional 518400 seconds; the report does not claim permanent freezing, invalid state finalisation or theft.

What the attacker needed

Active verifier keeps 30-block interval; honest ZK proof via rc.28 service; no user-side configuration workaround

The fix

The proof request should carry the on-chain intermediate-root interval through to witness generation, and proofs whose root count does not match the target verifier should be refused.

How it was found

  1. A type-621 AggregateVerifier game is created with a 30-block intermediate interval.
  2. A permissionless ZK proof is requested as the second proof for fast finality.
  3. The proof service records 10-block roots while the contract expects 30-block roots.
  4. The contract hashes its own root vector into the journal and the ZK verifier rejects the mismatched proof.
  5. Without the second proof the game stays on the 7-day slow finalisation delay.

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 rollup can finalise withdrawals faster when two independent proofs agree on the same proposal. Here the off-chain proof software and the on-chain contract disagree about how often to record checkpoints, so the proof the software produces never matches what the contract expects. The result is that the faster path is never unlocked and users wait the longer delay.

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 cgdusek

View all

2 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.