Pausable functions are not exposed
The contract inherits OpenZeppelin's Pausable and checks paused() in critical functions, but never exposes external pause/unpause functions. The owner therefore cannot activate the emergency stop, so the protocol cannot be paused during an incident.
- Disclosed after under an hour
49647 sc low pausable functions are not exposed
Submitted on Jul 17th 2025 at 21:27:36 UTC by @rajkaur for Attackathon | Plume Network
- Report ID: #49647
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/immunefi-team/attackathon-plume-network-nucleus-boring-vault/blob/main/src/base/Roles/TellerWithMultiAssetSupportPredicateProxy.sol
{% hint style="info" %} Brief / Intro
The TellerWithMultiAssetSupportPredicateProxy contract inherits OpenZeppelin's Pausable contract to support an emergency stop. However, it does not expose external functions to call the internal _pause() and _unpause() methods, so the owner cannot activate or deactivate the pause state.
{% endhint %}
Vulnerability Details
The contract correctly checks paused() to guard critical functions, indicating the developer intended the contract to be pausable. Example:
function deposit(
)
external
{
if (paused()) {
revert TellerWithMultiAssetSupportPredicateProxy__Paused();
}
}
However, OpenZeppelin's _pause() and _unpause() functions are internal. The contract does not provide external/public functions (e.g., pause() / unpause()) wrapped with appropriate owner access control to call these internal functions. As a result, there is no mechanism for the owner to trigger the pause or unpause behavior.
Impact Details
If an emergency occurs, the protocol would not be able to pause the contract, defeating the intended emergency-stop protection.
Proof of Concept
The PoC is the absence of external pause/unpause wrappers combined with usage of paused() checks. The snippet above demonstrates the contract relies on paused() but provides no way for the owner to change that state.
Suggested remediation (not altering vulnerability text): add owner-restricted external functions that call _pause() and _unpause(), for example:
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
(Do not change existing access control semantics; ensure the same owner/role restrictions used across the codebase are applied.)
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 relies on OpenZeppelin's internal _pause() and _unpause() functions but never adds owner-restricted external wrappers to call them.
Impact
During an emergency the protocol could not pause the contract, so the intended emergency-stop protection would be unavailable.
What the attacker needed
Owner role on the contract; an emergency requiring a pause
The fix
Add owner-restricted external pause() and unpause() functions that call the internal _pause() and _unpause() methods.
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 meant to let the owner stop a contract in an emergency. Here the contract checks whether it is paused before allowing deposits, but there is no button for the owner to actually flip that switch. 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.