supplyTokenTo allows users to bypass prize pool #3
Labels
bug
Something isn't working
invalid
This doesn't seem right
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L231-L242
Vulnerability details
Impact
Loss of user rewards
Proof of Concept
Contract allows anyone to call the supplyTokenTo and redeemToken functions, allowing users to bypass prize pool contract and deposit/supply directly to the Yield Source. Underlying tokens would be safe but user's rewards would be distributed to other users or lost
Tools Used
Recommended Mitigation Steps
Require that only prize pool can make redeem or supply calls
The text was updated successfully, but these errors were encountered: