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
Users could be arbitrarily ejection from the rollover queue
Summary
Vulnerability Detail
In case Bob has already queued up a rollover
Let's say: ownerToRollOverQueueIndex[address(Bob)] == X
and ownerToRollOverQueueIndex[address(Alice)] == rolloverQueue.length - 1
and rolloverAccounting[epoch Y] == X+5
epoch Y exists and has not started yet rolloverQueue.length == Z and (X+5 < Z)
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
Users could be arbitrarily ejection from the rollover queue
Summary
Vulnerability Detail
In case Bob has already queued up a rollover
Let's say:
ownerToRollOverQueueIndex[address(Bob)] == X
and
ownerToRollOverQueueIndex[address(Alice)] == rolloverQueue.length - 1
and
rolloverAccounting[epoch Y] == X+5
epoch Y exists and has not started yet
rolloverQueue.length == Z
and (X+5 < Z)Bob will invoke delistInRollover() this logic will execute
So Alice queue will be
ownerToRollOverQueueIndex[address(Alice)] == X
As we know
rolloverAccounting[epoch Y] == X+5
Now Alice thinks she will be in epoch Y But unfortunately, this will never happen
in this way, she could be only in the next epoch Y+1
Impact
The logic of
delistInRollover()
could corrupt the rollover queueCode Snippet
Tool used
Manual Review
Recommendation
You need to check
rolloverAccounting[ ]
for the next epoch withrolloverQueue[index]
Duplicate of #72
The text was updated successfully, but these errors were encountered: