Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Honour - Anyone can prevent pools from being bribable #273

Closed
sherlock-admin2 opened this issue Jul 15, 2024 · 0 comments
Closed

Honour - Anyone can prevent pools from being bribable #273

sherlock-admin2 opened this issue Jul 15, 2024 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue

Comments

@sherlock-admin2
Copy link

sherlock-admin2 commented Jul 15, 2024

Honour

Medium

Anyone can prevent pools from being bribable

Summary

A malicious actor can prevent any pool from being bribable

Vulnerability Detail

Anyone can create a bribe rewarder from the rewarder factory with any reward token for any pool and register it. Because each pool has a maximum of 5 bribe rewarders per epoch and there're no restrictions on the reward token or pool to register to , that means that anyone(or someone with incentive to want a specific pool to be voted for or to not be voted for) can literally create a token and a bunch of rewarders with said token to fill a pool's bribesPerPeriod, disincentivizing voters from voting for that sepcific pool.

Impact

malicious briber can disincentivize voters from voting for other pools by registering rewarders with dust reward tokens

Code Snippet

https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/rewarders/RewarderFactory.sol#L109-L113
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/Voter.sol#L130-L144

Tool used

Manual Review

Recommendation

There isn't any clear way to prevent someone from registering any rewarder on any pool ,however bribeRewarder reward tokens can be restricted to known/whitelisted tokens to atleast make it exponsive to do so.

Duplicate of #190

@github-actions github-actions bot added the Excluded Excluded by the judge without consulting the protocol or the senior label Jul 21, 2024
@0xSmartContract 0xSmartContract added Medium A Medium severity issue. Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label and removed Excluded Excluded by the judge without consulting the protocol or the senior labels Jul 28, 2024
@sherlock-admin4 sherlock-admin4 changed the title Slow Indigo Butterfly - Anyone can prevent pools from being bribable Honour - Anyone can prevent pools from being bribable Jul 29, 2024
@sherlock-admin4 sherlock-admin4 added the Reward A payout will be made for this issue label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

3 participants