Skip to content
DoS Audit finding Intermediate

Deposit function dos

The deposit function in the proxy contract mints shares to itself, which triggers a share lock on the proxy. When it then tries to transfer those shares to the user, the transfer reverts because the lock is still active, causing all deposits through the proxy to fail.

frolic Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

52988 sc medium deposit function dos

Submitted on Aug 14th 2025 at 15:13:01 UTC by @frolic for Attackathon | Plume Network

Description

Brief/Intro

The deposit function in the TellerWithMultiAssetSupportPredicateProxy contract attempts to transfer shares to the depositor after minting them via the underlying vault. However, due to the vault's share lock mechanism, the minted shares are locked to the proxy contract and cannot be transferred, causing the transfer to fail and preventing users from receiving their shares. This results in deposits being stuck and users unable to access their funds.

Vulnerability Details

The issue arises from the interaction between TellerWithMultiAssetSupportPredicateProxy and the underlying vault's share lock mechanism.

In the proxy's deposit flow:

Solidity
shares = teller.deposit(depositAsset, depositAmount, minimumMint);
// ...
vault.safeTransfer(recipient, shares); // transfers the shares to the recipient

When teller.deposit is executed, shares are minted to the proxy contract, but the vault sets a share lock period for the recipient (the proxy). The vault tracks locks with shareUnlockTime:

Solidity
function _afterPublicDeposit(
        address user,
        ERC20 depositAsset,
        uint256 depositAmount,
        uint256 shares,
        uint256 currentShareLockPeriod
    )
        internal
    {
    shareUnlockTime[user] = block.timestamp + currentShareLockPeriod; 
    uint256 nonce = depositNonce;
    publicDepositHistory[nonce] =
        keccak256(abi.encode(user, depositAsset, depositAmount, shares, block.timestamp, currentShareLockPeriod));
    // ...
}

Because the proxy is recorded as the user for the minting step, shareUnlockTime[proxy] is set and prevents transfers from the proxy until the lock expires. The vault enforces this in beforeTransfer:

Solidity
function beforeTransfer(address from) public view {
    if (shareUnlockTime[from] > block.timestamp) revert TellerWithMultiAssetSupport__SharesAreLocked();
}

Therefore, when the proxy attempts vault.safeTransfer(recipient, shares) immediately after minting, the transfer reverts due to the active lock on the proxy, causing the entire deposit transaction to revert and resulting in a denial of service for depositors via the proxy.

Impact Details

Any user attempting to deposit assets through the proxy will have their transaction reverted when the contract attempts to send the minted shares. The vault's beforeTransfer hook causes the revert because the proxy contract is subject to the newly set share lock. This leads to a denial of service for deposits made through the proxy — users cannot receive their minted shares and deposits fail.

References

Proof of Concept

{% stepper %} {% step %}

Reproduce the issue

  • User calls deposit on TellerWithMultiAssetSupportPredicateProxy with valid parameters.
  • The proxy mints shares to itself via the underlying teller/vault.
  • The proxy then attempts to transfer the minted shares to the user.
  • The vault's beforeTransfer detects shareUnlockTime[proxy] > block.timestamp and reverts.
  • The user does not receive shares and the transaction reverts. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by frolic. 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

The proxy mints shares to itself, which sets a share lock on the proxy, and then immediately tries to transfer those shares, which is blocked by the lock.

Impact

Deposits through the proxy always revert, so users cannot deposit and receive shares, causing a denial of service for that deposit path.

What the attacker needed

None

How it was found

  1. User calls deposit on the proxy with valid parameters.
  2. The proxy mints shares to itself via the underlying teller/vault.
  3. The proxy attempts to transfer the minted shares to the user.
  4. The vault's beforeTransfer sees the proxy's share unlock time is in the future and reverts.

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 proxy is supposed to pass a user's deposit to a vault and then send the newly created shares back to the user. But the vault locks shares for a short time after they are created, and the proxy is the one that receives them, so it cannot immediately pass them on. As a result, every deposit through this proxy fails and users cannot deposit.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by frolic

View all

2 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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.