Skip to content
Access control Audit finding Beginner

Missing admin pause unpause functions in tellerwithmultiassetsupportpredicateproxy contract

The contract inherits OpenZeppelin's Pausable and checks paused() in deposit, but exposes no public pause or unpause functions. The owner therefore cannot pause the contract during an emergency, so the built-in pause mechanism is unusable.

honey0x0 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

50022 sc low missing admin pause unpause functions in tellerwithmultiassetsupportpredicateproxy contract

Submitted on Jul 21st 2025 at 08:14:59 UTC by @honey0x0 for Attackathon | Plume Network

Description

Brief / Intro

The TellerWithMultiAssetSupportPredicateProxy contract inherits from OpenZeppelin's Pausable contract and implements pause checks in its functions, but lacks public admin functions to actually pause or unpause the contract. This renders the pause functionality unusable while still having the infrastructure in place.

Vulnerability Details

The contract inherits from Pausable and uses the paused() function to check if the contract is paused in its functions:

Solidity
contract TellerWithMultiAssetSupportPredicateProxy is Ownable, ReentrancyGuard, PredicateClient, Pausable {
Solidity
function deposit(
    ERC20 depositAsset,
    uint256 depositAmount,
    uint256 minimumMint,
    address recipient,
    CrossChainTellerBase teller,
    PredicateMessage calldata predicateMessage
)
    external
    nonReentrant
    returns (uint256 shares)
{
    if (paused()) {
        revert TellerWithMultiAssetSupportPredicateProxy__Paused();
    }
    ...

OpenZeppelin's Pausable exposes only internal functions _pause() and _unpause():

Solidity
function _pause() internal virtual whenNotPaused {
    _paused = true;
    emit Paused(_msgSender());
}

function _unpause() internal virtual whenPaused {
    _paused = false;
    emit Unpaused(_msgSender());
}

The TellerWithMultiAssetSupportPredicateProxy contract does not expose any public functions that call these internal functions, making it impossible for the contract owner to pause or unpause the contract.

Typical public admin functions would be:

Solidity
function pause() external onlyOwner {
    _pause();
}

function unpause() external onlyOwner {
    _unpause();
}

Impact Details

{% hint style="warning" %} The contract has pause functionality built-in but no public way to activate it. In case of security incidents or emergencies, admins cannot pause the contract to prevent further deposits. {% endhint %}

References

Proof of Concept

{% stepper %} {% step %}

Deployment

TellerWithMultiAssetSupportPredicateProxy is deployed with an owner address. {% endstep %}

{% step %}

Emergency

An emergency situation or a security incident arises which prompts the admin to pause the contract immediately. {% endstep %}

{% step %}

Attempt to Pause

Admin looks for public pause() / unpause() functions but none exist. {% endstep %}

{% step %}

Result

Contract can't be paused even though it has built-in pause functionality. {% endstep %} {% endstepper %}

Recommended Fix

Add owner-restricted public functions that call the internal pause/unpause implementations from OpenZeppelin:

Solidity
function pause() external onlyOwner {
    _pause();
}

function unpause() external onlyOwner {
    _unpause();
}

This preserves the existing pause checks (e.g., paused()) while allowing the owner to operate the pause mechanism during emergencies.

The original report as published on Immunefi, by honey0x0. 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 contract inherits Pausable and calls paused() in its functions but never exposes owner-callable wrappers around the internal _pause() and _unpause() functions.

Impact

The owner cannot pause deposits during an incident, so the promised emergency stop is unavailable; the text does not claim any direct loss of funds.

What the attacker needed

Contract deployed with an owner; an emergency requiring a pause

The fix

Add owner-restricted public pause and unpause functions that call the internal Pausable implementations.

How it was found

  1. Deploy the contract with an owner address.
  2. An emergency arises that requires pausing the contract.
  3. The admin looks for public pause or unpause functions but none exist.
  4. The contract cannot be paused despite having pause checks built in.

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 pause switch is a safety button that lets the owner stop deposits if something goes wrong. This contract has the wiring for that button and checks whether it is pressed, but there is no button to press. So the safety feature exists in name only and cannot be used.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Plume Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.