USDC rewards will not be distributed if `_updateRewardsStates` is triggered too often
0xBecket Follow with 0xCNX, A_Failures_True_Power and 22 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-03-symm-io-stacking-judging/issues/575
Found by
0xBecket, 0xCNX, A_Failures_True_Power, Artur, Audinarey, Breeje, CL001, Fortis_Audits, Kyosi, Pablo, SlayerSecurity, The_Rezolvers, Victor_TheOracle, X12, aslanbek, bladeee, durov, farismaulana, godwinudo, lls, newspacexyz, onthehunt, stuart_the_minion, wickie, zraxx
Summary
_updateRewardsStates can be triggered as often as each block (2 seconds) via deposit/withdraw/claim/notifyRewardAmount
e.g. if there's 1209.6e6 USDC rewards for one week (604800 seconds)
rate = 1209_600000 / 604800 = 2000 "usdc units" per second
if SYMM total staked supply is 1_000_000e18 (~26560 usd), and we call deposit each block, then perTokenStored will be increased by:
2 * 2000 * 1e18 / 1_000_000e18 = 4_000 / 1_000_000 = 0
Therefore, perTokenStored will not increase, but lastUpdated will be increased, therefore users will not receive any USDC rewards for staking.
In this particular example, triggering _updateRewardsStates once in 249 blocks would be sufficient, as it would still result in rewards rounding down to zero.
Root Cause
Lack of upscaling for tokens with less than 18 decimals for reward calculations.
Attack Path
- Attacker calls deposit/withdraw/notifyRewardAmount with any non-zero amount every block (or less often as long as the calculation will still round down to zero)
Impact
High: stakers do not receive rewards in tokens with low decimals (e.g. USDC, USDT).
PoC
- SYMM total staked supply = 1_000_000e18
notifyRewardAmountis called with 1209.6 USDC- griefer calls
deposit/withdraw1 wei of SYMM each 249 blocks for 1 week - USDC rewards are stuck in the contract, instead of being distributed to stakers (but can be rescued by admin)
Mitigation
Introduce 1e12 multiplier for reward calculation, and divide the accumulated rewards by 1e12 when they are being claimed.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/SYMM-IO/token/pull/6
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity business logic bug in Symmio, Staking and Vesting. Sherlock made it public on 24 March 2025. Found in the 838 audit contest (finding H-1), also found by 24 other wardens.
About Business logic
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.