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 Oct 1, 2023. It is now read-only.
sherlock-admin opened this issue
Mar 27, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
mintRollovers() will skip The user's queue arbitrarily
Summary
Vulnerability Detail
In case Bob has already queued up a rollover
Let's say:
All the queues are already minted by relayers for epoch Y. The epoch Y exists and has not started yet
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` labelHighA valid High severity issueRewardA payout will be made for this issue
Ch_301
medium
mintRollovers()
will skip The user's queue arbitrarilySummary
Vulnerability Detail
In case Bob has already queued up a rollover
Let's say:
All the queues are already minted by relayers for epoch Y. The epoch Y exists and has not started yet
ownerToRollOverQueueIndex[address(Bob)] == rolloverQueue.length - 1
and
rolloverAccounting[epoch Y] == rolloverQueue.length - 1
Bob will invoke delistInRollover() this logic will execute
Now Alice will call enlistInRollover() this logic will execute
After that Eve will also invoke enlistInRollover() this logic will execute
relayer now will call
mintRollovers()
. only the queue of Eve will execute.Alice needs to wait until the next epoch Y+1
Impact
mintRollovers()
will skip Alice's queue arbitrarilyCode Snippet
Tool used
Manual Review
Recommendation
The protocol should handle this scenario correctly (The queue of both Alice and Eve should be executed)
Duplicate of #72
The text was updated successfully, but these errors were encountered: