Skip to content
Business logic Audit finding Intermediate

Malicious teller parameter allow event data manipulation

The proxy deposit functions accept a caller-supplied teller contract, so a user can pass a fake teller that returns falsified values. The proxy then emits a Deposit event built from those values, which could mislead off-chain systems that trust the event.

holydevoti0n Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

51320 sc low malicious teller parameter allow event data manipulation

Submitted on Aug 1st 2025 at 16:55:10 UTC by @holydevoti0n for Attackathon | Plume Network

Description

Brief / Intro

The TellerWithMultiAssetSupportPredicateProxy contract accepts user-controlled teller parameters in both deposit() and depositAndBridge() functions. A malicious user can supply a fake teller that appears to perform deposit-related actions (depositing funds into the vault, minting shares, returning a nonce) but executes different logic. This enables emitting misleading events that off-chain systems might rely upon.

Vulnerability Details

The TellerWithMultiAssetSupportPredicateProxy accepts the teller parameter as an input, meaning a user can pass any contract that conforms to the expected interface but implements arbitrary logic:

https://github.com/immunefi-team/attackathon-plume-network-nucleus-boring-vault/blob/0ee676b5715075c26db6706960fd49ab59b587fc/src/base/Roles/TellerWithMultiAssetSupportPredicateProxy.sol#L121-L170

Solidity
    function depositAndBridge(
        ERC20 depositAsset,
        uint256 depositAmount,
        uint256 minimumMint,
        BridgeData calldata data,
@>        CrossChainTellerBase teller, // @audit user-controlled
        PredicateMessage calldata predicateMessage
    )
        external
        payable
        nonReentrant
    {
      ...
        }
        lastSender = msg.sender;
@>        ERC20 vault = ERC20(teller.vault());
        //approve vault to take assets from proxy
@>        depositAsset.safeApprove(address(vault), depositAmount);
        //transfer deposit assets from sender to this contract
        depositAsset.safeTransferFrom(msg.sender, address(this), depositAmount);
        // mint shares
@>        teller.depositAndBridge{ value: msg.value }(depositAsset, depositAmount, minimumMint, data);
        lastSender = address(0);
@>        uint96 nonce = teller.depositNonce();
        //get the current share lock period
        uint64 currentShareLockPeriod = teller.shareLockPeriod();
@>        AccountantWithRateProviders accountant = AccountantWithRateProviders(teller.accountant());
        //get the share amount
@>        uint256 shares = depositAmount.mulDivDown(10 ** vault.decimals(), accountant.getRateInQuoteSafe(depositAsset));

      // @audit - event data can be manipulated
        emit Deposit(
            address(teller),
            data.destinationChainReceiver,
            address(depositAsset),
            depositAmount,
            shares,
            block.timestamp,
            currentShareLockPeriod,
            nonce > 0 ? nonce - 1 : 0,
            address(vault)
        );
    }

Because off-chain systems often rely on emitted events to process actions (for example, bridging flows), a user-controlled teller can emit misleading events or cause the proxy to emit events whose data is not representative of the real state of the vault or bridge.

Currently, a more severe exploit (such as stealing funds) is mitigated by the auth system restricting calls to the base contract to only the proxy. The issue here is primarily about integrity of event data.

{% hint style="warning" %} User-controlled teller input allows malicious contracts to emit fake Deposit events, misleading off-chain systems and faking cross-chain deposits. {% endhint %}

Recommendation

{% hint style="info" %} Remove the teller parameter from the deposit functions and instead store the teller address in a state variable. Use this stored value internally within the deposit logic so callers cannot influence which teller implementation is used. {% endhint %}

Proof of Concept

Context: a user deploys a fake teller contract which returns manipulated values for nonce, lock period, and vault address and/or emits misleading events.

{% stepper %} {% step %}

Step

Malicious user deploys a fake teller contract that implements the expected interface but returns manipulated values (nonce, share lock period, vault address) and/or emits misleading events. {% endstep %}

{% step %}

Step

User calls the depositAndBridge function on the proxy, passing the malicious teller contract as the teller parameter along with legitimate deposit details. {% endstep %}

{% step %}

Step

The proxy calls into the provided teller (which may not have performed the real deposit, may have minted no shares, and may return falsified values), then the proxy emits a Deposit event based on the values it reads from that teller. {% endstep %}

{% step %}

Step

Off-chain systems ingest the emitted Deposit event and act on the corrupted data (nonce, shares, lock period, vault address), leading to false reporting or incorrect downstream actions (e.g., treating a deposit as bridged when it was not). {% endstep %} {% endstepper %}

No on-chain value is directly stolen in this scenario (per current auth restrictions), but event integrity is compromised and off-chain processes can be misled.

The original report as published on Immunefi, by holydevoti0n. 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 teller address is taken as a function parameter instead of being stored in contract state, so the caller controls which implementation supplies the event data.

Impact

No on-chain funds are stolen because auth restrictions limit calls to the base contract, but event data can be falsified and off-chain systems could be misled into treating a deposit as bridged when it was not.

What the attacker needed

Ability to call depositAndBridge; deploy a fake teller contract

The fix

The teller address should be stored in a state variable and used internally, so callers cannot choose which teller implementation is used.

How it was found

  1. Deploy a fake teller contract that implements the expected interface but returns manipulated values and/or emits misleading events.
  2. Call depositAndBridge on the proxy, passing the fake teller along with legitimate deposit details.
  3. The proxy calls the fake teller and then emits a Deposit event based on the values it reads from it.
  4. Off-chain systems ingest the event and act on the corrupted data.

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 smart contract can announce things by writing an 'event', a log that outside programs read. Here the deposit function lets the caller choose which helper contract it talks to, and that helper can lie about the numbers. The contract then publishes those lies as if they were real, so software watching the log may be fooled.

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 by holydevoti0n

View all

28 more disclosed reports, best first.

More from Plume Network

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.