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
The amountOutMinimum is slippage protection to ensure a certain amount is received incase there is a price change between transaction call and execution. Since the amountOutMinimum is specified to be 0, this means the contract is willing to accept a 0 output for a given input.
Impact
Due to lack of slippage protection, all swaps are open to sandwich attacks and will lead to loss of funds.
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
sam_gmk
high
No slippage protection
Summary
Vulnerability Detail
The
amountOutMinimum
is slippage protection to ensure a certain amount is received incase there is a price change between transaction call and execution. Since theamountOutMinimum
is specified to be 0, this means the contract is willing to accept a 0 output for a given input.Impact
Due to lack of slippage protection, all swaps are open to sandwich attacks and will lead to loss of funds.
Code Snippet
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/USSD.sol#L237
Tool used
Manual Review
Recommendation
Duplicate of #673
The text was updated successfully, but these errors were encountered: