Reproduced Exploit

UnprotectedArbBot: ungated forwarder drains a pre-granted allowance

Jul 2026Baseuntagged3 min read

Loss

~16.623 WETH (~$31.7K)

Chain

Base

Category

untagged

Date

Jul 2026

Source

DeFiHackLabs

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.

Loading fork state…

Source & credit. Exploit reproduction, trace data, and analysis adapted from DeFiHackLabs by SunWeb3Sec — an open registry of reproduced on-chain exploits. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC. Upstream DeFiHackLabs PoC: src/test/…/UnprotectedArbBot_exp.sol.


Vulnerability classes: vuln/logic · vuln/access-control

Reproduction: a self-contained, faithful reconstruction of the incident's core bug — local deploy, no fork — both gates green (registry forge test PASS + browser Playground VERDICT: PASS). Basis: DeFiHackLabs PR #1209 (UnprotectedArbBot_exp.sol, the upstream fork replay).


Key info#

Loss16.623 WETH ($31.7K)
ChainBase
Vulnerable contract0xce01759b… (Finding #2026: ArbBot)
Bug classFinding #2026: ArbBot

Root cause#

The bot's execute() forwards an attacker-supplied target+calldata via a low-level CALL with NO access-control check, then sweeps the named token's balance to msg.sender. A different entrypoint IS onlyOwner-gated, so the omission on execute() is the bug. The attacker makes the bot call WETH.transferFrom(owner, bot, 16.623 WETH) against an allowance the owner had pre-granted the bot, then the same call sweeps that WETH to the attacker - 16.623 WETH (~$31.7K) drained from the owner EOA.

SOLIDITY
    // @> VULN: no access control. Anyone can make the bot run an arbitrary call

Why it's exploitable here#

The bot's execute() forwards an attacker-supplied target+calldata via a low-level CALL with NO access-control check, then sweeps the named token's balance to msg.sender. A different entrypoint IS onlyOwner-gated, so the omission on execute() is the bug. The attacker makes the bot call WETH.transferFrom(owner, bot, 16.623 WETH) against an allowance the owner had pre-granted the bot, then the same call sweeps that WETH to the attacker - 16.623 WETH (~$31.7K) drained from the owner EOA.

Attack path#

flowchart TD S0["The ungated forwarder"] S1["Arbitrary call, no caller check"] S2["Setup: WETH is the drained asset"] S3["Setup: the vulnerable arb bot"] S4["Setup: profit accounting"] H["The bot's execute() forwards an attacker-supplied target"] S0 --> S1 S1 --> S2 S2 --> S3 S3 --> S4 S4 --> H

Marked-line walkthrough (Playground)#

The EVM Playground pins each step to the exact executed source line:

  1. L73 — The ungated forwarder: execute() is public with no caller check - unlike the contract's onlyOwner-gated sweep.
  2. L75 — Arbitrary call, no caller check: Root cause: the attacker-supplied call WETH.transferFrom(owner, bot, 16.623 WETH) runs on a pre-granted allowance, then the same call sweeps the WETH to the attacker.
  3. L88 — Setup: WETH is the drained asset: Setup: WETH is the token the owner pre-approved to the bot and that the attacker walks away with.
  4. L90 — Setup: the vulnerable arb bot: Setup: the arbitrary-call forwarder bot - its execute() entrypoint has no access control.
  5. L93 — Setup: profit accounting: Setup: the exploit tracks the WETH it sweeps out of the owner.
  6. L95 — Setup: wire the scenario: Setup: deploy WETH, the owner wallet, and the bot for the reproduction.
  7. L96 — Setup: deploy WETH: Setup: WETH is minted to the owner, who has a standing allowance to the bot.

PoC#

Registry (Foundry, local deploy — faithful reconstruction + harm-asserting test):

BASH
cd 2026-07-UnprotectedArbBot_exp
forge test -vvv

The browser Playground replays the same synthetic opcode-for-opcode and measures the harm. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).

Sources#


Sources & further analysis#

Reproductions & code

  • No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
  • Upstream DeFiHackLabs PoC: UnprotectedArbBot_exp.sol.

Alerts & third-party analyses

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.