Skip to content
Business logic Audit finding Beginner

User can bypass minStakeAmount checking.

The staking contract enforces a minimum stake amount when staking but does not check the remaining balance after a partial unstake. A user can unstake most of their stake and leave a balance below the minimum, breaking the protocol's invariant.

New5paceXyz Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

50225 sc low user can bypass minstakeamount checking

Submitted on Jul 22nd 2025 at 18:24:34 UTC by @New5paceXyz for Attackathon | Plume Network

Description

Brief/Intro
User can unstake partially which allows the user to end up with a remaining staked balance that is less than minStakeAmount because the code does not check that the remaining staked amount stays >= minStakeAmount.

Vulnerability Details

Impact Details

User can end up with a staked balance below minStakeAmount, which breaks the design invariant that every active stake be >= minStakeAmount. This affects protocol assumptions about minimum effective stakes but does not directly drain funds.

References

<details> <summary>Relevant source lines</summary> </details>

Proof of Concept

{% stepper %} {% step %}

  1. User stakes an amount greater than minStakeAmount, e.g. minStakeAmount + 1. {% endstep %}

{% step %} 2. User partially unstakes minStakeAmount. {% endstep %}

{% step %} Result: The user now has 1 remaining staked (or generally a remainder < minStakeAmount), demonstrating the protocol allows a staked balance below minStakeAmount. {% endstep %} {% endstepper %}

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

Impact

A user can end up with a staked balance below minStakeAmount, breaking the design invariant that every active stake be at least minStakeAmount, but this does not directly drain funds.

What the attacker needed

A staked balance above minStakeAmount

The fix

When processing an unstake, check the resulting remaining staked amount; if it would be below minStakeAmount, require the user to unstake the full remaining amount or disallow the partial unstake.

How it was found

  1. Stake an amount greater than minStakeAmount, for example minStakeAmount + 1.
  2. Partially unstake minStakeAmount.
  3. Observe that the remaining staked balance is 1, which is below minStakeAmount.

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 lets people lock tokens (stake) and requires at least a certain amount to be locked. When someone takes tokens back (unstake), the contract does not check that what is left is still above that minimum. So a person can end up with a tiny stake that the rules say should not exist.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by New5paceXyz

View all

1 more disclosed report, 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.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.