Skip to content
DoS Audit finding Intermediate

Malicious User can dilute staking Rewards to a longer timeframe

The SymmStaking contract allows anyone to call notifyRewardAmount with any amount, and each call recalculates the reward rate by dividing the total remaining rewards by the fixed duration. An attacker can repeatedly add tiny amounts (e.g., 1 wei) to dilute the reward rate, delaying stakers from receiving their full rewards.

0day Follow with 0xAristos, 0xBecket and 47 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-03-symm-io-stacking-judging/issues/595

Found by

0day, 0xAristos, 0xBecket, 0xDarko, 0xc0ffEE, 0xhammadghazi, 0xkmg, 0xlucky, 0xmechanic, 0xpiken, Abhan1041, Akhuemokhan.ETH, Anirruth, Arav, Artur, Audinarey, BAdal-Sharma-09, Boy2000, Breeje, BusinessShotgun, DenTonylifer, DharkArtz, Drynooo, Edoscoba, ElmInNyc99, EmanHerawy, Flare, Fortis_Audits, Frontrunner, HaidutiSec, KlosMitSoss, LSH.F.GJ, Limbooo, LonWof-Demon, MSK, Matin, MysteryAuditor, OpaBatyo, Opeyemi, Pablo, Pelz, Pro_King, Ryonen, SUPERMAN_I4G, SarveshLimaye, Silvermist, SlayerSecurity, Waydou, X0sauce, X12, Yaneca_b, ZoA, arman, aslanbek, aswinraj94, auditism, auditmasterchef, brgltd, buggsy, copperscrewer, dimah7, dobrevaleri, durov, eta, farismaulana, future2_22, ggbond, gkrastenov, hildingr, ihtishamsudo, ilyadruzh, jo13, komane007, korok, krot-0025, moray5554, newspacexyz, novaman33, omega, onthehunt, osuolale, oxwhite, phoenixv110, redbeans, redtrama, roccomania, santiellena, shui, silver_eth, spdream, stuart_the_minion, t.aksoy, t0x1c, turvec, udo, vladi319, x0lohaclohell, y4y, yaioxy, ydlee

Summary

The SymmStaking contract allows anyone to add new rewards using the notifyRewardAmount function. However, if new rewards are continuously added while existing rewards are still active, the total rewards get spread over a longer period. A malicious actor can exploit this by repeatedly adding tiny amounts, effectively delaying stakers from receiving their full rewards.

Root Cause

  • notifyRewardAmount function can be called by anyone, with any reward amount.

  • Each time it's called, the reward rate is recalculated as:

The issue arises when an attacker keeps adding tiny amounts (e.g., 1 wei) repeatedly. While the total rewards (amount + leftover) barely change, the duration (state.duration) remains fixed at 1 week, causing the reward rate to drop significantly over time.

Example:

  1. Alice is the only staker, and 100 USDC is added as a reward.

  2. Halfway through, Alice has earned 50 USDC.

  3. A malicious user then adds just 1 wei USDC as a new reward.

  4. This recalculates the reward rate, cutting it in half:

    • From 100e6 / 1 week → 50e6 / 1 week.
  5. The attacker can repeat this process multiple times, continuously lowering the rate.

This DoS-like attack prevents stakers from claiming their rewards in a reasonable timeframe.

Internal Pre-conditions

None.

External Pre-conditions

None.

Attack Path

  1. Users stakes in SymmStaking.

  2. A new reward is notified via notifyRewardAmount for the stakers.

  3. A malicious user calls notifyRewardAmount multiple times with dust values to dilute the reward rate.

  4. User get rewards slower than what they were supposed to get.

Impact

Time to gain the intended reward can be arbitrarily increased by malicious users.

PoC

No response

Mitigation

Consider adding restrictions on who can add new reward. Alternatively, implement a minimum amount of reward tokens that can be added to ensure that the total reward amount is meaningfully increased.

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/SYMM-IO/token/pull/4

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

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 notifyRewardAmount function is callable by anyone with any amount, and it recalculates the reward rate by dividing the total remaining rewards by a fixed duration, so repeated tiny additions dilute the rate.

Impact

Time to gain the intended reward can be arbitrarily increased by malicious users.

What the attacker needed

None

The fix

The protocol team fixed this issue in the following PRs/commits: https://github.com/SYMM-IO/token/pull/4

How it was found

  1. Users stake in SymmStaking.
  2. A new reward is notified via notifyRewardAmount for the stakers.
  3. A malicious user calls notifyRewardAmount multiple times with dust values to dilute the reward rate.
  4. User get rewards slower than what they were supposed to get.

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.

In a staking contract, users lock tokens and earn rewards over a set period. The contract lets anyone add new rewards, but each addition recalculates how fast rewards are paid out. An attacker can add a tiny amount many times, which makes the payout rate drop, so honest stakers have to wait much longer to get what they earned.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Symmio, Staking and Vesting

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.