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
Sandwitch attack will happen because no check on slippage
Summary
Since amountOutMinimum 0 is saying we don't give us the token no matter the price/amount and since on Ethereum it will be moved and it can cause loss and dust in the protocol and an attacker can profit from rebalancing. Getting sandwiched is possible
Vulnerability Detail
A sandwich attack is possible with this and we can abuse it and not get as much collateral back and the attacker can call the rebalance and sandwich(buy contract->buy sell)
Impact
Profit for the attacker and loss of collateral for the contract
Code Snippet
Tool used
Manual Review
Recommendation
Compute the price and check with slippage or have the slippage amount computed by the contract
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
simon135
high
Sandwitch attack will happen because no check on slippage
Summary
Since amountOutMinimum 0 is saying we don't give us the token no matter the price/amount and since on Ethereum it will be moved and it can cause loss and dust in the protocol and an attacker can profit from rebalancing. Getting sandwiched is possible
Vulnerability Detail
A sandwich attack is possible with this and we can abuse it and not get as much collateral back and the attacker can call the rebalance and sandwich(buy contract->buy sell)
Impact
Profit for the attacker and loss of collateral for the contract
Code Snippet
Tool used
Manual Review
Recommendation
Compute the price and check with slippage or have the slippage amount computed by the contract
Duplicate of #673
The text was updated successfully, but these errors were encountered: