Skip to content
Access control Audit finding Intermediate

Owner can steal Concur rewards

The owner of the MasterChef contract can add a new depositor and inflate that depositor's assigned balance, allowing the owner to steal nearly all Concur reward tokens from other depositors.

Czar102 Follow

Originally disclosed on Code4rena

Submitted by Czar102

MasterChef.sol#L78-L80 MasterChef.sol#L157-L180

Owner can steal Concur rewards by adding a depositor and inflating other depositors’ assigned balance of the token within the contract. Thus, the owner-managed depositor can get most (all but one wei) of the created tokens.

Recommended Mitigation Steps

Do not allow the owner to add depositors after the depositors have been configured.

ryuheimat (Concur) disputed and commented:

Owner is a multisig & timelock. New depositors can be added later as well.

Alex the Entreprenerd (judge) decreased severity to Medium and commented:

I think the warden could have done a better job at writing a POC.

That said the finding is valid. The sponsor could set a depositor to be any EOA and because there’s no transfer of tokens the balances could be inflated. Setting an immutable depositor would bring stronger security guarantees instead of allowing any contract to become a depositor.

Because this is contingent on admin privilege, I believe medium severity to be more appropriate.


The original report as published on Code4rena, by Czar102. 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

Likely the contract allows the owner to add depositors at any time and does not verify that token balances are backed by actual transfers, enabling balance inflation.

Impact

The owner could steal most (all but one wei) of the created reward tokens, though this requires admin privilege and the owner is a multisig with timelock.

What the attacker needed

Owner is a multisig & timelock; owner adds a depositor; owner inflates depositor balance

The fix

The owner should not be allowed to add depositors after initial configuration, or the depositor should be immutable.

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.

In a smart contract, the owner is the account that controls certain settings. Here, the owner could add a new depositor and give it a huge balance without actually transferring any tokens, so that depositor could claim almost all the rewards meant for others.

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 Czar102

View all

12 more disclosed reports, best first.

More from Concur Finance contest

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.