Skip to content
Access control Audit finding Intermediate

RewardsController Emission Manager Can Authorize Users to Claim on Behalf of the AaveV3YieldSource Contract and Siphon Yield

The AaveV3YieldSource contract relies on Aave's RewardsController, whose emission manager can authorise other addresses to claim rewards on behalf of the yield source. A malicious emission manager could therefore siphon yield away from the yield source and redirect it to themselves.

leastwood Follow

Originally disclosed on Code4rena

Submitted by leastwood

aave/RewardsController.sol#L190-L193 aave/RewardsController.sol#L39-L42 aave/RewardsController.sol#L133-L143 AaveV3YieldSource.sol#L275-L286

The AaveV3YieldSource contract allows the manager or owner of the contract to claim rewards from Aave’s rewards controller. However, there is an external dependency on this periphery Aave contract such that the emission manager of the RewardsController contract may allows other users to be authorized claimers.

Authorized claimers can claim rewards on behalf of the AaveV3YieldSource contract, effectively bypassing any restrictions put in place by this proprietary contract and its claimRewards() function. A malicious emissions manager can effectively siphon yield away from the AaveV3YieldSource contract and redirect it to them-self.

Recommended Mitigation Steps

Ensure this is understood and enforce that the RewardsController contract is owner by PoolTogether’s multisig.

PierrickGT (PoolTogether) acknowledged and commented:

Exactly, we will need to whitelist an address by calling the setClaimer function: aave/RewardsController.sol#L190 We will probably setup a contract that can claim for various yield sources.


The original report as published on Code4rena, by leastwood. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The yield source trusts an external rewards controller whose emission manager can authorise arbitrary claimers, bypassing the yield source's own claim restrictions.

What the attacker needed

Malicious emission manager; control of RewardsController

The fix

The RewardsController should be owned by PoolTogether's multisig so that the emission manager cannot be used maliciously.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A yield source is a smart contract that puts money into another protocol to earn rewards. Here, the outside protocol lets its manager give other people permission to collect those rewards, so the manager could take the rewards for themselves instead of letting the yield source keep them.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by leastwood

View all

70 more disclosed reports, best first.

More from PoolTogether

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.