Skip to content
Business logic Audit finding Advanced

EOA only on smart contract chains bypassed on ETH

An agent on the FAsset system can use EIP-7702 to delegate their externally owned account to a contract that rejects small minting payments, so a user's payment fails while the agent later collects the user's collateral reservation fee. This is a griefing issue that breaks the permissionless minting invariant rather than a way to steal funds directly.

Machicoulis Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#45956 [SC-Insight] EOA only on smart contract chains bypassed on ETH

Submitted on May 22nd 2025 at 21:58:14 UTC by @Machicoulis for Audit Comp | Flare | FAssets

Description

Brief/Intro

With EIP-7702 enabling EOAs to temporarily delegate to smart contracts, agents can now implement discriminatory logic during minting, accepting payments only from whitelisted addresses while rejecting others. This breaks the permissionless nature of the FAsset system and allows agents to create unfair markets, potentially excluding users based on arbitrary criteria.

Vulnerability Details

The vulnerability allows agents to implement conditional acceptance of minting payments using EIP-7702 delegation.

When users attempt to mint: User calls reserveCollateral() and pays collateral reservation fee.

User receives payment instructions via CollateralReserved event.

User sends payment to agent's underlying address.

Agent's EOA (delegated to discriminatory contract) rejects the payment

User loses collateral reservation fee with no recourse

The protocol's EOA requirement was specifically designed to prevent such conditional behavior:

// From AgentsCreateDestroy.sol
require(Globals.getSettings().requireEOAAddressProof, "EOA proof required");

Impact Details

Because of all the other safeguards implemented, even if the agent bypasses the EOA only security on Ethereum, they can't do very harmful things. This is mostly a griefing attack, and a break of an invariant that should be aknowledged.

References

https://eips.ethereum.org/EIPS/eip-7702

Proof of Concept

Proof of Concept

Agent deploys a smart contract on Ethereum that only accepts payments ≥ 10 ETH Agent creates vault on Flare by calling createAgentVault() with their Ethereum address Agent joins available agents list by calling makeAgentAvailable()

Small user (Alice) wants to mint 0.5 ETH worth of f-assets Alice calls reserveCollateral() on Flare, paying 0.001 ETH collateral reservation fee Alice receives payment instructions via CollateralReserved event: send 0.505 ETH to agent's Ethereum address

Alice sends 0.505 ETH to agent's Ethereum address Agent uses EIP-7702 to delegate their EOA to the minimum deposit contract for this transaction Transaction reverts because 0.505 ETH < 10 ETH minimum Alice gets her 0.505 ETH back but has lost the collateral reservation fee

Alice cannot call executeMinting() - she has no payment proof (payment failed) Agent calls mintingPaymentDefault() after timeout and collects Alice's reservation fee Agent continues normal operations with large depositors while excluding small ones

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

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 protocol's EOA-only requirement assumes an EOA cannot run conditional logic, but EIP-7702 delegation lets an EOA execute contract code that can reject payments selectively.

Impact

The user loses only the collateral reservation fee, and the report notes that other safeguards limit the damage, so this is a griefing attack and a broken invariant rather than a serious exploit.

What the attacker needed

Agent controls an Ethereum address; agent can deploy a contract; victim mints a small amount; EIP-7702 is live on Ethereum

The fix

The protocol should not rely on an EOA-only check as proof of honest behaviour, and should account for EIP-7702 delegation when enforcing that requirement.

How it was found

  1. The agent deploys a contract on Ethereum that only accepts payments at or above a chosen minimum.
  2. The agent creates a vault on Flare with their Ethereum address and makes it available as an agent.
  3. A user reserves collateral and pays the collateral reservation fee.
  4. The user sends the minting payment to the agent's Ethereum address.
  5. The agent delegates their EOA to the minimum-deposit contract, so the payment reverts and the user loses the reservation fee.
  6. After the timeout the agent calls mintingPaymentDefault and collects the user's reservation fee.

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.

An externally owned account (EOA) is a normal crypto wallet controlled by a private key. A new Ethereum feature lets such a wallet temporarily act like a small program, so the agent can make their wallet refuse payments below a chosen amount. A user who tries to mint a small amount pays a reservation fee, their payment is refused, and the agent can later claim that fee, so the user loses money for nothing.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Flare | FAssets

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.