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

novaman33 - _unlockOperators can manipulate votes #150

Closed
sherlock-admin2 opened this issue Jul 15, 2024 · 1 comment
Closed

novaman33 - _unlockOperators can manipulate votes #150

sherlock-admin2 opened this issue Jul 15, 2024 · 1 comment
Labels
Non-Reward This issue will not receive a payout

Comments

@sherlock-admin2
Copy link

sherlock-admin2 commented Jul 15, 2024

novaman33

High

_unlockOperators can manipulate votes

Summary

In the MlumStaking.sol unlock operators have the right to unlock a position anytime. This gives them the right to create serious manipulation of the vote.

Vulnerability Detail

The vote function only checks if the vote duration for the current position and the initial lock duration are over the minimum to vote. However this is not enough as unlock operators can create multiple positions vote and than withdraw.
Consider the following scenario:

  1. Vote has started. An unlock operator creates a position and votes.
  2. Then they withdraw and create position again and vote again.

Impact

_unlockOperators will cause huge vote manipulation and also cut other user's rewards - High

Code Snippet

https://github.com/sherlock-audit/2024-06-magicsea/blob/42e799446595c542eff9519353d3becc50cdba63/magicsea-staking/src/Voter.sol#L172

Tool used

Manual Review

Recommendation

Do not allow positions that were just created to vote. Create a delay so that they can vote starting next voting period.

@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 High A High 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 High A High severity issue. Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jul 28, 2024
@0xSmartContract
Copy link
Collaborator

After a thorough review, it has been determined that this issue represents a centralization risk rather than a vulnerability in the smart contract itself. The ability for _unlockOperators to manipulate votes hinges on the centralized control these operators have. Such risks are inherent in systems where centralized entities have significant control, and mitigating these risks often involves governance and oversight mechanisms rather than technical fixes.

This issue is categorized as a centralization risk, which should be managed through governance and oversight, not as a technical vulnerability. Therefore, it is marked as invalid.

@sherlock-admin4 sherlock-admin4 changed the title Stale Mulberry Whale - _unlockOperators can manipulate votes novaman33 - _unlockOperators can manipulate votes Jul 29, 2024
@sherlock-admin4 sherlock-admin4 added the Non-Reward This issue will not receive a payout label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Non-Reward This issue will not receive a payout
Projects
None yet
Development

No branches or pull requests

3 participants