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 Nov 26, 2023. It is now read-only.
sherlock-admin opened this issue
May 24, 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
Unprotected slippage tolerance can lead to user/protocol loss of funds
Summary
The USSDRebalancer contract executes swaps without slippage protection. This may cause a loss of funds because of sandwich attacks (especially during times of high volatility when large swaps can be executed).
Vulnerability Detail
Swaps in the BuyUSSDSellCollateral and SellUSSDBuyCollateral functions will be sandwiched causing a loss of funds for users and the protocol.
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
SensoYard
medium
Unprotected slippage tolerance can lead to user/protocol loss of funds
Summary
The USSDRebalancer contract executes swaps without slippage protection. This may cause a loss of funds because of sandwich attacks (especially during times of high volatility when large swaps can be executed).
Vulnerability Detail
Swaps in the
BuyUSSDSellCollateral
andSellUSSDBuyCollateral
functions will be sandwiched causing a loss of funds for users and the protocol.Impact
Loss of funds due to sandwich attacks.
Code Snippet
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/USSD.sol#L227-L240
Tool used
Manual Review
Recommendation
Slippage parameters should be passed to the
UniV3SwapInput
function. You may use an oracle to get an estimate of the price.Duplicate of #673
The text was updated successfully, but these errors were encountered: