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 7, 2024. It is now read-only.
sherlock-admin opened this issue
Jul 3, 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
VUSD's withdrawal request can be skipped if reserve has not enough balance at the moment of processing --> Users can get DoS
Summary
VUSD's withdrawal request can be skipped if reserve has not enough balance at the moment of withdrawal processing
Vulnerability Detail
processWithdrawals function will loop through each withdrawal request made, and will try to process if there's sufficient remaining balance. However, if the balance is insufficient, a fail event will be emitted and the request will simply be skipped (and will never be re-processed again).
Impact
The withdrawal request made can be frontrunned by other users --> it's possible that every time the user who wanted to withdrawal can always be frontrunned so that the remaining balance is always insufficient -> cannot withdraw forever.
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
n1punp
high
VUSD's withdrawal request can be skipped if reserve has not enough balance at the moment of processing --> Users can get DoS
Summary
VUSD's withdrawal request can be skipped if reserve has not enough balance at the moment of withdrawal processing
Vulnerability Detail
processWithdrawals
function will loop through each withdrawal request made, and will try to process if there's sufficient remaining balance. However, if the balance is insufficient, a fail event will be emitted and the request will simply be skipped (and will never be re-processed again).Impact
Code Snippet
https://github.com/sherlock-audit/2023-04-hubble-exchange/blob/main/hubble-protocol/contracts/VUSD.sol#L79
Tool used
Manual Review
Recommendation
Possible mitigations are:
Duplicate of #162
The text was updated successfully, but these errors were encountered: