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.
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA Medium severity issue.RewardA payout will be made for this issue
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 27, 2024
sherlock-admin4
changed the title
Soft Mint Lizard - NFT approved users cannot vote
scammed - NFT approved users cannot vote
Jul 29, 2024
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA Medium severity issue.RewardA payout will be made for this issue
scammed
Medium
NFT approved users cannot vote
Summary
Approved users over
lsNFT
cannot vote viaVoter::vote
due to strict if check.Vulnerability Detail
In
MlumStaking.sol
, approved users for a givenlsNFT
can perform any operations, but cannot vote becauseVoter::vote
has strict owner check.Impact
Approved addresses cannot vote, thus losing the purpose of approving
lsNFTs
, while still being able to perform any other operation inMlumStaking.sol
.Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/42e799446595c542eff9519353d3becc50cdba63/magicsea-staking/src/Voter.sol#L161-L163
Tool used
Manual Review
Recommendation
Make
MlumStaking::_requireOnlyApprovedOrOwnerOf()
public and use it instead ofownerOf()
.Duplicate of #378
The text was updated successfully, but these errors were encountered: