Skip to content
Business logic Audit finding Beginner

Jackpot reward rejected at exact threshold

The reward function in the Spin contract compares the random draw against the jackpot threshold with a strict less-than, so a draw exactly equal to the threshold is not treated as a jackpot. A player whose draw lands on that exact value receives a lesser Plume Token prize instead of the jackpot, slightly lowering the effective jackpot chance.

Am3nh3l Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

52948 sc low jackpot reward rejected at exact threshold

Submitted on Aug 14th 2025 at 13:01:45 UTC by @Am3nh3l for Attackathon | Plume Network

Description

Brief/Intro
In Spin.sol, the determineReward function uses < instead of <= for the jackpot threshold check, rejecting the jackpot when probability equals jackpotThreshold, unfairly reducing the jackpot probability.

Vulnerability Details

Solidity
        if (probability < jackpotThreshold) {
            return ("Jackpot", jackpotPrizes[weekNumber]);
        } else if (probability <= rewardProbabilities.plumeTokenThreshold) {
            uint256 plumeAmount = plumeAmounts[probability % 3];
            return ("Plume Token", plumeAmount);
        } else if (probability <= rewardProbabilities.raffleTicketThreshold) {
            return ("Raffle Ticket", baseRaffleMultiplier * streakForReward);
        } else if (probability <= rewardProbabilities.ppThreshold) {
            return ("PP", PP_PerSpin);
        }

Impact Details
When probability == jackpotThreshold, the jackpot is skipped and the user receives a Plume Token reward instead, reducing the effective jackpot probability (for example, from 0.001% to 0.0009% for threshold = 1). Users are unfairly denied jackpots, potentially losing significant rewards (e.g., 5,000–100,000 PLUME).

References

determineReward uses <= for other thresholds, inconsistent with < for jackpot.

Code snippet:

Solidity
if (probability < jackpotThreshold) {
    return ("Jackpot", jackpotPrizes[weekNumber]);
} else if (probability <= rewardProbabilities.plumeTokenThreshold) {
    // Plume Token awarded

Proof of Concept

{% stepper %} {% step %}

Scenario

  • Suppose jackpotThreshold = 10
  • RNG result: probability = 10 {% endstep %}

{% step %}

What happens

  • 10 < 10 fails → not jackpot
  • Falls through to Plume Token condition (10 <= 200000 succeeds)
  • User wins Plume Token instead of jackpot {% endstep %}

{% step %}

Expected behavior

  • The jackpot should cover [0, 10] (11 values) when using an inclusive threshold, but with < it only covers [0, 9] (10 values), reducing the effective jackpot chance. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by Am3nh3l. 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 jackpot check uses a strict less-than comparison while the other prize tiers use less-than-or-equal, so the boundary value falls through to the next tier.

Impact

Players whose draw equals the threshold could be denied the jackpot and receive a smaller token prize instead, slightly reducing the effective jackpot probability.

What the attacker needed

A spin whose draw equals the threshold

The fix

The jackpot comparison should be changed to less-than-or-equal so the threshold value is included, matching the other tiers.

How it was found

  1. Set the jackpot threshold to a value such as ten.
  2. Have the random draw return exactly that threshold value.
  3. Observe that the strict comparison fails and the draw falls through to the Plume Token tier.

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 is a program that runs on a blockchain and can pay out prizes. This one picks a random number and compares it to a cut-off to decide whether you win the big prize. The comparison leaves out the exact cut-off value, so one winning number is quietly turned into a smaller prize.

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 Am3nh3l

View all

3 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.