Skip to content
Business logic Audit finding Intermediate

Contracts without payable entry points cannot withdraw nor claim rewards

A staking contract allows smart contracts without a payable receive or fallback function to become stakers. When the protocol later tries to send native tokens to such a staker, the transfer always reverts, permanently freezing the staked principal and making rewards unclaimable.

jovi Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

51201 sc low contracts without payable entry points cannot withdraw nor claim rewards

Submitted on Jul 31st 2025 at 22:03:36 UTC by @jovi for Attackathon | Plume Network

Description

Brief / Intro

A missing “is-payable” check on stake admission means any non-payable contract can become a staker. Later, every native-coin transfer to that address reverts, freezing both yield and unstake withdraw claims.

Vulnerability Details

Both reward and principal payouts are executed with raw native transfers:

Solidity
(bool success, ) = user.call{value: amountToWithdraw}("");
if (!success) revert NativeTransferFailed();   // StakingFacet.sol#L416-419
Solidity
(bool success, ) = recipient.call{value: amount}("");
if (!success) revert PlumeTransferFailed(recipient, amount); // PlumeStakingRewardTreasury.sol#L179-182

If the staker address is a smart contract without a payable receive() or fallback(), these calls always revert. The protocol nevertheless lets such contracts open stakes, so:

  • Rewards accumulate but can never be claimed.
  • Unstaked principal moves to the parked/withdrawable pool but withdraw() reverts.

The user’s rewards and entire stake end up locked permanently.

Impact

Asset / Function Outcome
Staked PLUME principal Permanent freeze — withdraw() always reverts
Accrued native rewards Unclaimable

Recommendation

{% stepper %} {% step %}

Admission guard

Introduce an admission guard when someone opts to stake. Make sure to also have reentrancy protection so that the caller cannot exploit this mechanism. The 1 wei call ensures the staker is able to receive native amounts.

Solidity
require(msg.value > 0, "Msg.value must be bigger than 1");
require(
    staker.code.length == 0 || address(staker).call{value:1}(""),
    "NON_PAYABLE_STAKER"
);

{% endstep %}

{% step %}

Rescue mechanism

Allow one-time designation of an alternate payable address if a native transfer fails. {% endstep %}

{% step %}

Fail-safe escrow

Wrap calls in try/catch; credit failed amounts to an escrow users can sweep with an EOA. {% endstep %}

{% step %}

Wrap native token

Consider wrapping the native token so that users receive back an ERC20 version of it. {% endstep %} {% endstepper %}

Proof of Concept

{% stepper %} {% step %} Deploy a dummy contract without receive()/fallback(). {% endstep %}

{% step %} Stake PLUME to any validator, using the dummy contract as staker. {% endstep %}

{% step %} Unstake after some time; wait for cooldown to mature. {% endstep %}

{% step %} Call withdraw()
→ tx reverts with NativeTransferFailed; principal remains trapped. {% endstep %}

{% step %} (Optional) Call claimRewards() before unstaking; observe identical revert for rewards. {% endstep %} {% endstepper %}

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

Likely the staking admission logic does not verify that a contract staker can receive native tokens before allowing it to stake.

Impact

Staked principal is permanently frozen and accrued native rewards cannot be claimed.

What the attacker needed

Staker is a contract without payable receive/fallback; contract can call stake function

The fix

The report recommends adding an admission guard that checks the staker can receive native tokens, plus rescue and escrow mechanisms; the text does not state that a fix was applied.

How it was found

  1. Deploy a dummy contract without receive() or fallback().
  2. Stake PLUME to any validator using the dummy contract as staker.
  3. Unstake after some time and wait for cooldown to mature.
  4. Call withdraw(); the transaction reverts with NativeTransferFailed and principal remains trapped.
  5. Optionally call claimRewards() before unstaking to observe the same revert for rewards.

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.

Some smart contracts can receive cryptocurrency, but only if they include a special function that accepts it. This staking system lets a contract without that function join as a staker, so when it later tries to pay out rewards or return the stake, the payment fails every time. The money gets stuck with no way to retrieve it.

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 jovi

View all

25 more disclosed reports, 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.