52248 sc insight lack of initialization check in staking allows users to stake without reward token configured causing permanent loss of yield
Description
Intro
Vulnerability Details
RewardsFacet(address(diamondProxy)).addRewardToken(
PLUME_NATIVE,
PLUME_REWARD_RATE_PER_SECOND,
PLUME_REWARD_RATE_PER_SECOND * 2
);
treasury.addRewardToken(PLUME_NATIVE);
vm.deal(address(treasury), 1_000_000 ether);Impact Details
Link to Proof of Concept
Proof of Concept
Previous52980 sc critical partial fills strand source tokens in the wrapper and leave dangerous residual allowancesNext51596 sc low unsafe uint256 to uint8 downcast causes integer overflow leading to unauthorized jackpot payouts after week 255
Was this helpful?