-
Notifications
You must be signed in to change notification settings - Fork 1
csanuragjain - User deposit may never be entertained from deposit queue #174
Comments
depositing into queue should count as committing to an epoch. By giving the user the ability to delist his queue he could take advantage of market movements. However, we will raise min deposit for the queue to make DDoS very expensive. |
Escalate for 10 USDC My issues #62 and #63 are both marked as duplicate of this issue when only #63 is actually a duplicate. Therefore, to reiterate, the #62 and #63 are different because they don't involve the same states, attack vector and users. In my judging repos I market as duplicate of #63: From what I have seen all or almost all this issue are present here as duplicate of #174. A lot of people submitted them as different issues because they are indeed completely different. |
You've created a valid escalation for 10 USDC! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
Agree re 62, here the issues were grouped per 'pop' allowing for various manipulations. |
Escalation accepted After reviewing the issues and all its duplicates, given the complexity as well as the similarities between these issues, the fair move would be to split up these issues into two categories based on the functions of the root cause: |
This issue's escalations have been accepted! Contestants' payouts and scores will be updated according to the changes made on this issue. |
Issue has been acknowledged by sponsor |
csanuragjain
medium
User deposit may never be entertained from deposit queue
Summary
Due to FILO (first in last out) stack structure, while dequeuing, the first few entries may never be retrieved. These means User deposit may never be entertained from deposit queue if there are too many deposits
Vulnerability Detail
depositQueue
depositQueue.length=X+1
mintDepositInQueue
and processX-9
depositsy+10
Y+9
depositsImpact
User deposit may remain stuck in deposit queue if a large number of deposit are present in queue and relayer is interested in dequeuing all entries
Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Carousel/Carousel.sol#L310
Tool used
Manual Review
Recommendation
Allow User to dequeue deposit queue based on index, so that if such condition arises, user would be able to dequeue his deposit (independent of relayer)
The text was updated successfully, but these errors were encountered: