You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
DOS on voting for pools with bribeRewarder due to incorrect check on _modify
Summary
Voting for pools with a bribeRewarder reverts due to incorrect logic in _modify
Vulnerability Detail
During voting ,the voter contract calls the deposit function on the respective bribeRewarder which in turn calls the _modify function. However the _modify function reverts if the msg.sender is not the token owner, which means that its not possible to vote for pools with a bribeRewarder
sherlock-admin4
changed the title
Slow Indigo Butterfly - DOS on voting for pools with bribeRewarder due to incorrect check on _modify
Honour - DOS on voting for pools with bribeRewarder due to incorrect check on _modify
Jul 29, 2024
Honour
High
DOS on voting for pools with bribeRewarder due to incorrect check on _modify
Summary
Voting for pools with a bribeRewarder reverts due to incorrect logic in
_modify
Vulnerability Detail
During voting ,the voter contract calls the
deposit
function on the respective bribeRewarder which in turn calls the_modify
function. However the_modify
function reverts if the msg.sender is not the token owner, which means that its not possible to vote for pools with a bribeRewarderImpact
Voting for pools with a bribeRewarder reverts
Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/Voter.sol#L221-L229
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/rewarders/BribeRewarder.sol#L143-L147
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/rewarders/BribeRewarder.sol#L264-L266
Tool used
Manual Review
Recommendation
Duplicate of #39
The text was updated successfully, but these errors were encountered: