Skip to content
Access control Audit finding Advanced

Arbitrum Retryable-Ticket Refund/Value Not Verified Enables Timelock ETH Exfiltration

The GuardCM contract, which restricts what the Community Multisig can schedule through the timelock, failed to check the ETH value forwarded and the Arbitrum retryable-ticket refund addresses. An attacker with control of the multisig could schedule an allowlisted L2 action while setting attacker-controlled refund addresses, diverting timelock ETH.

0xb0k0 Follow with 0xastronatey, 0xJoker42 and 13 others

Originally disclosed on Code4rena

Submitted by 0xb0k0, also found by 0xastronatey, 0xJoker42, 0xterrah, Bale, Diavolo, Drothon, edoscoba, johnyfwesh, kimchiwarrior, kind0dev, legat, Nakamoto, PlayboiEvokid, ProngsDev, and qwqkol

  • autonolas-governance/../contracts/multisigs/GuardCM.sol #L189-L239
  • autonolas-governance/../contracts/multisigs/bridge_verifier/ProcessBridgedDataArbitrum.sol #L31-L60

GuardCM is meant to restrict what the Community Multisig (CM) can schedule through the timelock by allowing only specific target + selector (+ chainId) combinations. For Arbitrum-bridged actions, the current verification only checks the L2 targetAddress and the L2 targetPayload selector, while ignoring (1) the timelock value forwarded on execution and (2) critical Arbitrum retryable-ticket parameters (notably the refund recipients). As a result, CM can schedule an allowlisted L2 action but still divert timelock ETH via attacker-controlled refund addresses.

Root cause

There are two coupled gaps:

  1. GuardCM._verifySchedule() ignores the timelock value

  2. In schedule(address target, uint256 value, bytes data, ...), the value is decoded but discarded:

    • GuardCM.sol decodes (target, value, data, ...) but never checks/limits value.
    • Same applies to scheduleBatch(...) (values array is decoded but not enforced).
  3. https://github.com/valory-xyz/autonolas-governance/blob/6ea160398200a7b1ca6bf916fc2cd91483bff707/contracts/multisigs/GuardCM.sol#L189-L239

  4. ProcessBridgedDataArbitrum validates only L2 targetAddress + selector and ignores refund recipients / fee knobs

  5. ProcessBridgedDataArbitrum.processBridgeData() ABI-decodes the Arbitrum retryable ticket payload and extracts only:

    • targetAddress (L2 destination), and
    • targetPayload (L2 calldata), then calls _verifyData(targetAddress, targetPayload, chainId).
  6. It does not verify:

    • excessFeeRefundAddress
    • callValueRefundAddress
    • maxSubmissionCost, gasLimit, maxFeePerGas, l2CallValue, etc.
  7. https://github.com/valory-xyz/autonolas-governance/blob/6ea160398200a7b1ca6bf916fc2cd91483bff707/contracts/multisigs/bridge_verifier/ProcessBridgedDataArbitrum.sol#L31-L60

Attack path (step-by-step)

Assume GuardCM is active and installed as the Safe guard for the CM Safe, and CM can schedule timelock calls.

  1. CM proposes/schedules a timelock operation calling the Arbitrum Inbox (createRetryableTicket or unsafeCreateRetryableTicket).

  2. The retryable ticket is crafted such that:

    • targetAddress is a whitelisted L2 contract,
    • targetPayload starts with a whitelisted selector (so _verifyData() passes),
    • but excessFeeRefundAddress and callValueRefundAddress are set to attacker-controlled addresses.
  3. The timelock schedule(...) call uses a large value (ETH) to be forwarded when executing the retryable-ticket call.

  4. GuardCM.checkTransaction() approves the schedule because:

    • it ignores/doesn’t constrain the timelock value, and
    • the Arbitrum bridge verifier ignores refund recipients and only verifies L2 target+selector.
  5. When the timelock executes, it forwards ETH into the Arbitrum Inbox call; under Arbitrum’s retryable-ticket model, excess fees/value are refunded to the provided refund recipients. Since those recipients are attacker-controlled and unverified, timelock ETH can be diverted.

Impact(s)

  • High severity: loss of funds (timelock ETH) via attacker-controlled refund recipients, despite the guard being active.
  • Bypasses the intended security boundary of GuardCM: CM can schedule “allowlisted” L2 actions while still abusing unverified parameters to redirect L1 value.
  • The amount at risk is bounded by the timelock’s ETH balance and the scheduled value.

Threat model / who can exploit

  • Any actor who can get a transaction executed from the CM Safe while GuardCM is active (e.g., compromised CM signers, an attacker meeting the Safe threshold).
  • The README explicitly declares the DAO as trusted, but GuardCM exists specifically to constrain CM actions; therefore, “malicious/compromised CM” is an in-scope attacker for guard bypasses.

Cost/feasibility

  • Minimum attacker cost is approximately L1 gas + whatever minimum non-refundable amount the Arbitrum Inbox requires.
  • The attacker’s gain scales with chosen value (up to the timelock ETH balance), not with cost.

Recommended mitigation steps

1) Enforce value constraints for schedule / scheduleBatch in GuardCM GuardCM._verifySchedule() currently decodes schedule(address target, uint256 value, bytes data, ...) but does not validate value.

  • For any bridged call (i.e., when mapBridgeMediatorL1BridgeParams[target].verifierL2 != address(0)), enforce:

    • value == 0 for schedule, and
    • all values[i] == 0 for scheduleBatch.

Rationale: the guard should restrict not only what is called, but also how much ETH can be forwarded alongside the call. Without this, allowlisted calls can still be used to redirect timelock ETH via bridge-specific refund mechanics.

2) Validate Arbitrum retryable-ticket economic parameters in ProcessBridgedDataArbitrum ProcessBridgedDataArbitrum.processBridgeData() should decode and validate the full retryable-ticket call, not only (targetAddress, targetPayload).

At minimum, enforce:

  • excessFeeRefundAddress is an approved address (e.g., a DAO-controlled receiver), not attacker-controlled.
  • callValueRefundAddress is an approved address (same rationale).

Recommended additional constraints (defense-in-depth):

  • Require l2CallValue == 0 unless explicitly needed for the allowlisted action.
  • Enforce sane bounds for maxSubmissionCost, gasLimit, maxFeePerGas (or enforce they match predetermined values for the specific action).
  • Consider rejecting unsafeCreateRetryableTicket entirely unless there is a strong need.

Proof of Concept

View detailed Proof of Concept


The original report as published on Code4rena, by 0xb0k0. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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 guard only verifies the target address and function selector for bridged calls, ignoring the ETH value and Arbitrum retryable-ticket refund parameters.

Impact

Timelock ETH could be lost to attacker-controlled refund addresses despite the guard being active, bounded by the timelock's ETH balance and the scheduled value.

What the attacker needed

Control of the Community Multisig; GuardCM active as Safe guard; ability to schedule timelock calls

The fix

The guard should enforce that value is zero for bridged schedule calls and validate that retryable-ticket refund addresses are approved, with optional bounds on other economic parameters.

How it was found

  1. The Community Multisig schedules a timelock operation calling the Arbitrum Inbox with a retryable ticket.
  2. The ticket uses a whitelisted L2 target and selector but sets refund addresses to attacker-controlled addresses.
  3. The schedule call includes a large ETH value to be forwarded.
  4. GuardCM approves the schedule because it ignores the value and refund recipients.
  5. When the timelock executes, ETH is forwarded and excess fees are refunded to the attacker-controlled addresses.

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 timelock is a contract that delays actions, and a guard is meant to limit what a multisig can do through it. Here the guard checked which contract and function were called but not how much money was sent or where refunds went. So someone who controls the multisig could send money to themselves through the refund mechanism.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by 0xb0k0

View all

4 more disclosed reports, best first.

More from Olas

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.