Skip to content
Access control Audit finding Intermediate

Emergency admin can unpause reserves, breaking pause asymmetry

The reserve pause function in the PoolConfigurator allows the emergency admin to unpause reserves, even though the design intends that only the pool admin can unpause. A compromised emergency admin key could therefore re-enable trading on a reserve that was deliberately paused.

v12 Follow with oxwhite, qed and 1 other

Originally disclosed on Code4rena

Submitted by v12, also found by oxwhite, qed, and y4y

Found by V12

  • contracts/pool-configurator/src/reserve.rs #L334

The KineticRouter’s global pause system enforces an intentional asymmetry (documented as M-04 fix in emergency.rs): pause() uses validate_emergency_admin (allowing emergency admin or pool admin), while unpause() uses validate_admin (pool admin only). The comment in emergency.rs:14 explicitly states: “Emergency admin can pause but cannot unpause, preventing a compromised emergency key from undoing a deliberate pause set by the pool admin.” However, the PoolConfigurator’s set_reserve_pause function uses validate_emergency_admin for both directions of the boolean paused parameter. This means a compromised emergency admin key can call set_reserve_pause(asset, false) to unpause any individually-paused reserve, completely bypassing the M-04 security invariant at the reserve level. Every other configuration function in the PoolConfigurator (set_reserve_freeze, set_reserve_factor, etc.) correctly uses validate_admin (pool admin only).

Root Cause

set_reserve_pause gates both pause and unpause behind validate_emergency_admin, which accepts the emergency admin OR pool admin, instead of restricting unpause (paused=false) to validate_admin (pool admin only).

Impact

A compromised emergency admin key can re-enable operations on individually paused reserves by calling set_reserve_pause(asset, false). This directly undermines the designed security guarantee that a compromised emergency key cannot undo a deliberate pause, potentially allowing trading on a reserve that was paused due to an exploit or price oracle issue.

Proof of Concept

See this gist for full Proof of Concept


The original report as published on Code4rena, by v12. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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 `set_reserve_pause` function uses `validate_emergency_admin` for both pausing and unpausing, instead of restricting unpause to `validate_admin`.

Impact

A compromised emergency admin key could unpause a reserve that was paused due to an exploit or price oracle issue, potentially allowing trading on it again.

What the attacker needed

Compromised emergency admin key

The fix

The unpause path should be restricted to the pool admin by using `validate_admin` when `paused` is false.

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 has two admin roles: a pool admin and an emergency admin. The design says the emergency admin can pause things in a hurry but must not be able to undo a pause, so a stolen emergency key cannot restart a market that was stopped on purpose. This report shows one function that lets the emergency admin do both, breaking that rule.

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

View all

37 more disclosed reports, best first.

More from K2

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.