# Unverified cross-chain proof import

Proofs, Merkle branches or roots accepted from callers without binding to committed state or spec bounds

_Area: Smart contract access control and control flow. Seen in 5 disclosed reports; latest 2026-05-20. Updated 2026-11-27._

## How it works
A verifier should accept a proof only when it is bound to state the verifier already trusts: a committed root, a fixed statement, or a spec-defined structure. The broken assumption is that a caller-supplied proof is self-validating. When the verifier walks caller-supplied branches, indices, sizes or expressions without tying them to committed state or a spec bound, a proof for a statement nobody committed to can pass as valid [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md). The same failure appears in transcript form: if a Fiat-Shamir challenge is sampled before every value defining the statement is absorbed, the challenge is independent of those values, so a malicious author can change the statement and keep the challenge [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md).

## Where it shows up
- Import/submit handlers that take Merkle branch arrays, indices, sizes or extra hashes from the caller [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md)
- Merkle path walkers that navigate by low index bits without checking the index against `2**proof.length` [E2](https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md)
- Fiat-Shamir transcripts where challenges are sampled before constraint expressions or coefficients are absorbed [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md)
- Reimplementations of another protocol's verifier (walkTree-style) that may drift from the upstream spec [E5](https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md)
- Bridge proxy entry points that forward to proof verification and token processing, e.g. submitImports -> proveImports -> processTransactions [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md)
- Cross-chain "retry" handlers that accept a caller-supplied message root or proof [E3](https://bugbountylibrary.com/r/dhl%3A20260520-mapprotocol.md)

## How to review
State the invariant: every value the proof depends on is either committed by the verifier or checked against a spec bound. For Merkle imports, confirm branch length, index and size are cross-validated against each other and the committed root, and that the index is bounds-checked against `2**proof.length` [E2](https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md)[E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md). For transcript-based proofs, confirm every statement-defining expression is absorbed before challenge sampling [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md). For reimplemented verifiers, diff loop bounds and invariants against the upstream reference and spec docs; a missing depth cap breaks soundness assumptions [E5](https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md). For retry/message handlers, check the root is validated against a stored committed value, not trusted blindly [E3](https://bugbountylibrary.com/r/dhl%3A20260520-mapprotocol.md).

## How finders spotted it
- Noticed Interaction fields could be arbitrary expressions, checked the transcript, saw challenges sampled before those expressions were evaluated, then solved the linear relation to confirm a backdoor [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md)
- Code review of verifyInclusion's delegation to ValidateSPV.prove: the library validates the cryptographic path but never checks `_index` against `2**_proof.length`, and navigation uses only low index bits [E2](https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md)
- Code review comparing walkTree against Scroll's official zkTrie documentation and reference implementation, spotting the missing depth guard [E5](https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md)
- E3 and E4: discovery method not documented in the evidence.

## Variants seen
- Forged cross-chain import proof with attacker-controlled Merkle branches accepted as valid [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md)
- Merkle index not bounds-checked, so index + k*2^h reuses a valid proof [E2](https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md)
- Weak Fiat-Shamir: challenges omit Interaction field expressions, enabling backdoored circuits [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md)
- Missing maximum depth limit in a reimplemented zkTrie verifier (spec drift, not caller-proof binding) [E5](https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md)
- Forged cross-chain message payload executed by a retry handler [E3](https://bugbountylibrary.com/r/dhl%3A20260520-mapprotocol.md)

## Impact and severity
E4 drained ~$11.58M in ETH, tBTC and USDC from the bridge, the highest impact here because the forged proof reached token minting and the bridge held real assets [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md). E3 minted 1B MAPO (~$180K) [E3](https://bugbountylibrary.com/r/dhl%3A20260520-mapprotocol.md). E2 enabled phantom deposits and full liquidity drain [E2](https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md). E1 and E5 break verifier soundness: false or out-of-spec proofs are accepted [E1](https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md)[E5](https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md). Impact rises when the verifier sits directly in front of asset movement [E4](https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md).

## Evidence
- E1: https://bugbountylibrary.com/r/cantina%3Aopenvm_january2025%3A3.2.4.md
- E2: https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.2.1.md
- E3: https://bugbountylibrary.com/r/dhl%3A20260520-mapprotocol.md
- E4: https://bugbountylibrary.com/r/dhl%3A20260517-verusbridge.md
- E5: https://bugbountylibrary.com/r/c4%3A2024-12-unruggable-invitational%3AM-01.md
