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.
- 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
- Report ID: #52948
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/immunefi-team/attackathon-plume-network/blob/main/plume/src/spin/Spin.sol
- Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
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
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:
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 < 10fails → not jackpot- Falls through to Plume Token condition (
10 <= 200000succeeds) - 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 %}
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
- Set the jackpot threshold to a value such as ten.
- Have the random draw return exactly that threshold value.
- 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.