Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

simon135 - Sandwitch attack will happen because no check on slippage #932

Closed
sherlock-admin opened this issue May 24, 2023 · 0 comments
Closed
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A valid High severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin
Copy link
Contributor

sherlock-admin commented May 24, 2023

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

@github-actions github-actions bot closed this as completed Jun 5, 2023
@github-actions github-actions bot added High A valid High severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jun 5, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A valid High severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

1 participant