Skip to content
Access control Audit finding Beginner

Contract Cannot Be Paused: Missing Public pause and unpause Functions

The contract inherits OpenZeppelin's Pausable but does not expose public pause and unpause functions, so it cannot be paused. An attacker could exploit this during a hack or black swan event to prevent administrators from mitigating further harm.

MMophule Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

51567 sc low contract cannot be paused missing public pause and unpause functions

Submitted on Aug 4th 2025 at 04:22:59 UTC by @MMophule for Attackathon | Plume Network

Description

Brief/Intro

The contract inherits from the OpenZeppelin Pausable contract, but does not implement the required public pause() and unpause() functions. OpenZeppelin's Pausable only provides internal _pause() and _unpause() functions, so the inheriting contract must expose public functions (usually access-controlled) that call those internals.

Vulnerability Details

Because there are no public pause() and unpause() functions implemented, the contract cannot be paused via the standard mechanisms provided by OpenZeppelin's Pausable.

Impact Details

During potential hacks or black swan events, being unable to pause the contract can prevent administrators from mitigating further harm. This was assessed as medium in impact.

Proof of Concept

The contract and any subcontracts inheriting from it do not include public functions that call _pause() and _unpause(), so pause/unpause functionality is effectively unavailable.

Suggested Fix (implicit)

Ensure the contract exposes appropriately access-controlled public functions that call _pause() and _unpause() (for example, pause() and unpause() guarded by an admin/owner role).

The original report as published on Immunefi, by MMophule. 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 OpenZeppelin's Pausable but fails to expose public functions that call the internal _pause() and _unpause() methods.

Impact

During potential hacks or black swan events, being unable to pause the contract can prevent administrators from mitigating further harm.

What the attacker needed

None

The fix

The contract should expose appropriately access-controlled public functions that call _pause() and _unpause().

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.

This is a smart contract that is supposed to have a pause button so administrators can stop it in an emergency. The code includes a standard pause feature, but it never adds the public buttons that would actually trigger it. So if something goes wrong, nobody can pause the contract.

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.