Authorization answers “who is acting?”. An open executor lets the attacker choose a powerful answer. Every check downstream then passes honestly, for the wrong principal.
A contract that runs anyone’s calldata while keeping its own identity lets strangers spend its authority. That’s the whole bug. This guide shows how it plays out, why it’s critical by default, and how to tell it apart from the many safe contracts that look the same.
The bug in one sentence
A contract with authority (funds, approvals, NFTs or a trusted role) forwards caller-supplied calldata to other contracts, so those contracts see the forwarder as the caller and grant the attacker everything the forwarder is allowed to do.
When contract A calls contract B, B checks permissions against A’s address. If A will forward any bytes an unauthenticated caller hands it, A is a confused deputy. B’s checks are correct. They’re just answering for the wrong party.
A real case: Unistreets launchpad (Ethereum, August 2026, about $17.7K plus memecoins)
Unistreets was a one-transaction memecoin launchpad. Its LaunchpadFactoryAuto minted a Uniswap V4 LP position for each launch and kept every position NFT itself. At attack time it held 15 live positions.
Its launch() function forwarded two caller-supplied calldata blobs straight into the V4 position manager:
positionIdOf[token] = IPositionManager(POSITION_MANAGER).nextTokenId(); // factory will own this LP
bytes[] memory calls = new bytes[](2);
calls[0] = initCalldata; // caller-supplied
calls[1] = modifyCalldata; // caller-supplied, never checked
IPositionManager(POSITION_MANAGER).multicall(calls); // runs as the factory
There was no allowlist and no selector check. And Uniswap V4’s Multicall_v4 runs each entry with a self-delegatecall:
address(this).delegatecall(data[i]); // msg.sender inside is still the factory
So inside the payload, msg.sender is still the factory.
The attacker passed one blob, setApprovalForAll(exploit, true). It ran as the factory and made the attacker’s contract an approved operator over every NFT the factory owned. The position manager’s own approval check then passed, correctly, for all 15 positions. The exploit burned each position, took both sides of the liquidity, and walked away with about 17,743 USDC, a little WETH and seven memecoins. One decoy launch unlocked everything the factory held.
Why this is almost always total loss
Let A be everything reachable under the executor’s identity: balances, approvals pointing at it, NFTs it owns and roles it holds. Let C be the gas for one call.
profit ≈ A − C
There’s no dependence on pool depth, timing or counterparties. With a spot-price bug, profit is limited by how far you can move a pool. Here the ceiling is the deputy’s entire authority. That’s why this class is critical by default, and why the fix is never “add liquidity” but “remove the authority or close the entry point”.
The attack, step by step
- Deploy. The attacker deploys an exploit contract whose constructor runs the whole attack.
- Trigger. Call
factory.launch(...)with a decoy token andmodifyCalldata = setApprovalForAll(exploit, true). - Hijack. The position manager’s multicall delegatecalls the payload. The approval is written as the factory.
- Drain. Loop over all factory-owned positions and burn each one, taking the liquidity.
- Extract. Send the USDC, WETH and tokens to the attacker’s wallet.
Why it worked: three facts
- Open entry point. Caller bytes are forwarded with no sender check and no allowlist.
- Borrowed identity. The inner protocol authorizes the executor, using its NFTs, approvals or trusted status.
- Valuable targets. Privileged calls such as approve, burn, sweep or admin functions are reachable.
Remove any one and it’s safe. Gate the entry and nobody can steer it. Strip the authority and an open forwarder that holds nothing is just Multicall3, harmless by construction. Or scope every action to the submitter’s own position, so there are no third-party parameters to abuse.
How to hunt for it
- Entry point authentication. Who can call the executor? Is there any check between the entry point and the call loop?
bash grep -rnE "batch\(|aggregate\(|execute\(|multicall\(|\.call\(|\.delegatecall\(" src/ - What authority does it carry? Balances, approvals pointing at it, NFTs it owns, module or batcher registrations (
isOwner(x),BATCHER(),enabledModules), and delegated borrow allowances in lending markets. - Identity downstream. When the target sees
msg.sender, does it see the executor acting with privileges? - Reach. Can the payload call arbitrary transfer, spend or admin functions? Can it name a third party as beneficiary or “on behalf of”?
- EIP-7702 accounts. For delegated EOAs, decode the delegation designator, check what trusts that account, and test whether an outsider can drive it.
- Chain state, not just source. Approvals and registrations live on-chain. If the executor could plausibly hold standing approvals, check the chain. Reading the source alone can make a vulnerable executor look empty.
Lookalikes that are safe, and why
- Multicall3-style aggregators. Being open isn’t the bug. Authority is. A contract with no funds, no approvals and no registrations runs calls with nobody’s privileges. Audit its balance sheet and registrations, not its openness.
- Safe
execTransaction. The batch runs only after threshold signatures over that exact batch. It’s a different shape entirely. - Routers that pass the original sender through. If each call is checked against the real user, the router never lends its identity.
- Gated executors. A timelock, multisig or role check on the loop is fine, as long as the gate covers every path to the forwarder. A modifier on a sibling function doesn’t count.
Fixes that work, and which fact each one kills
- Authenticate the entry point (fact 1). This is the one missing line in almost every case. It fails if the check targets the wrong party, such as the relayer instead of the payload’s author, or if a second ungated path reaches the same loop.
- Hold as little authority as possible (fact 2). Custody nothing, hold no approvals, register nowhere. Authority tends to creep in later through a new approval or a module listing, so re-audit after every integration.
- Allowlist targets and selectors (fact 3). It fails if an allowed target is itself a multicall, because nested delegation re-opens everything, or if the allowlist includes admin selectors.
- Scope actions to the submitter (fact 3). Force the beneficiary, recipient and “on behalf of” to
msg.sender. It fails when just one parameter escapes. That single missed field is the classic bug. - EIP-7702 hygiene (fact 2, for delegated EOAs). Never delegate an admin or treasury EOA to code with a public multicall. Treat the delegation as a trust registration. “Temporary” delegations have a habit of becoming permanent.
The same bug in other clothes
- SquidMulticall (Ethereum, April 2026, about 1 ETH taken). A public
run(Call[])forwarded raw calldata, and users had left unlimited bridge approvals on the router. OnetransferFrom(victim, attacker, ...)as the router was enough. Here the authority was other people’s parked approvals, not owned assets, which is why source-only reviews miss it. - QNT BatchCall (EIP-7702). An admin EOA was delegated to a batch executor that trusted a public
batch(address[], bytes[])function. Anyone could drive it with admin authority and drain the reserve. Under EIP-7702, an EOA’s code is attack surface. - Aggregator spenders on every scale. One aggregator spender path drained about 229K USDT through approvals in April 2026. An unverified helper on Base spent one victim’s WETH through an open call. Scale isn’t a property of the bug.
Test yourself
- An open multicall with no auth that holds nothing and is registered nowhere. Finding? No, because it has no authority. Re-check after every integration, because authority builds up.
- The batch is owner-gated, but a public
rescueERC20forwards arbitrary calldata. Finding? Possibly critical. The gate has to cover every path to the forwarder. Read the rescue function’s body, not its name. - The executor authenticates callers and passes the original sender to subcalls. Verdict? Safe on both counts. Two ingredients fail independently.
- Victim approvals exist on-chain, but you only have the source. Clean? Not yet. Mark it as suspected and name the standing approvals. Source alone can’t see chain-state authority.
- Your fork test only drains the executor’s dust. Report? Report what the evidence supports. Severity follows reachable authority, not the pattern’s name.
Recap
- Three legs: open entry, borrowed identity, valuable targets. Downstream checks pass honestly, for the wrong party.
- Profit is reachable authority minus gas, with no depth, timing or counterparty limits. That makes it critical by default.
- Multicall3 is safe for exactly the reason this is dangerous: authority, not openness, is the bug.
- Under EIP-7702, EOA code is attack surface. Audit delegation designators like contracts.
- The reflex: whenever code runs someone else’s calldata, ask whose identity it’s using.