Owner or Managers can rug Aave rewards #89
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
Lines of code
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L275-L282
Vulnerability details
Impact
A malicious owner or manager can steal all Aave rewards that are meant for PoolTogether users
Even if the user is benevolent the fact that there is a rug vector available may negatively impact the protocol's reputation.
Proof of Concept
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L275-L282
the
claimRewards()
function allows the caller to send the rewards to an arbitrary addressTools Used
Code inspection
Recommended Mitigation Steps
Use a
poolAddressesProviderRegistry
-like contract to determine where the rewards should go, instead of letting an address be passed inThe text was updated successfully, but these errors were encountered: