This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
0x52 - Users are forced to swap all reward tokens with no slippage protection #121
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
High
A valid High severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
0x52
high
Users are forced to swap all reward tokens with no slippage protection
Summary
AuraSpell forces users to swap their reward tokens to debt token but doesn't allow them to specify any slippage values.
Vulnerability Detail
AuraSpell.sol#L193-L203
Above all reward tokens are swapped and always use 0 for min out meaning that deposits will be sandwiched and stolen.
Impact
All reward tokens can be sandwiched and stolen
Code Snippet
AuraSpell.sol#L149-L224
Tool used
Manual Review
Recommendation
Allow user to specify slippage parameters for all reward tokens
The text was updated successfully, but these errors were encountered: