The ConvexStakingWrapper and StakingRewards contracts call MasterChef's deposit and withdraw functions, which use the caller's address as the user. As a result, all users' staked balances are recorded under the wrapper contract, and reward payouts go to whoever triggers the deposit or withdraw, not the actual depositor.
The execute function in VoteProxy lacks the payable modifier, so it reverts when called with a non-zero Ether value. An attacker cannot exploit this directly, but it prevents the owner from sending Ether through the proxy.
The reward calculation in ConvexStakingWrapper.sol incorrectly tracks the contract's reward token balance, causing underflows and misdistribution when multiple pools share the same reward token. An attacker could cause deposits and withdrawals to revert or leave rewards frozen in the claim contract.
The exitShelter function transfers LP tokens back to the ConvexStakingWrapper contract but does not restake them in the pool. As a result, users cannot withdraw their LP tokens because the withdraw function attempts to unstake tokens that are no longer staked, causing a revert and locking funds.
The MasterChef contract records deposits but does not hold the deposit tokens, so its internal balance check always returns zero. As a result, the reward calculation is skipped and users never receive Concur rewards.
The donate function in Shelter.sol allows deposits after the grace period ends, which can increase the savedTokens for a token and thus increase claim amounts for users who have not yet withdrawn, potentially disadvantaging those who already withdrew.
The MasterChef contract allows the admin to set a token fee above 100%, which causes deposit calls to fail due to underflow when subtracting the fee from the reward. This can permanently break the contract's deposit functionality for that token, as the fee cannot be undone.
The withdraw function transfers tokens directly from the contract's balance, but after the guardian moves most funds into a Curve pool, the contract lacks sufficient tokens, causing withdrawals to fail. An attacker could not exploit this for gain, but users may be unable to withdraw their deposits.
The USDM deposit contract lacks a mechanism for users to withdraw their deposited USDM, so funds remain locked until the guardian removes liquidity. An attacker cannot directly exploit this, but users are unable to retrieve their deposits.
The recoverERC20 function allows the owner to withdraw any token except the staking token, including the rewards token. A malicious or compromised owner could therefore steal all rewards intended for users.
The donate function credits the full transfer amount to savedTokens even for fee-on-transfer tokens, so the contract's recorded balance exceeds its actual token balance. The last person to withdraw cannot claim their share because the calculated amount exceeds the available balance.
The enterShelter function overwrites the amountInShelter value instead of adding to it, so calling it again on the same LP token can set the recorded amount to zero. This can prevent users from withdrawing their tokens from the shelter, potentially locking them permanently after the grace period.
The StakingRewards contract's recoverERC20 function allows the owner to withdraw the rewards token, which is meant to be distributed to stakers. A malicious owner could sweep all rewards tokens, effectively rugging depositors.
The provide function calculates the liquidity to add based only on the usdm balance, ignoring the pool3 balance. If the truncated usdm amount exceeds the available pool3 tokens, the function reverts, preventing guardians from providing liquidity even when sufficient tokens exist.
The activate function could be called repeatedly, resetting the timestamp used to enforce a grace period. A malicious client could then deactivate a token after the deadline and transfer all contract funds to itself.
The updatePool function fails to update reward variables when block.number >= endBlock, so pools that have not recently called updatePool miss out on rewards they were entitled to before endBlock. This disadvantages less active pools compared to more active ones.
The provide function calculates the liquidity to add based solely on the USDM balance, ignoring the pool3 balance, so when pool3 is less than USDM the add_liquidity call fails. This prevents the guardian from adding liquidity to the usdm3crv pool in common scenarios.
The MasterChef contract lacks a way to remove pools or reduce their allocation points, so totalAllocPoint only increases. This dilutes rewards for active pools, causing stakers to receive less than expected while unused pools still accrue rewards.
The Shelter contract's withdraw function tracks claimed withdrawals using the recipient address (_to) instead of the caller (msg.sender), allowing any user with a small share to repeatedly withdraw and drain all funds.
The Shelter contract allows the client to call activate on an already activated token, resetting its start time. This prevents users from withdrawing their donated tokens while allowing the client to deactivate and take all funds.
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.
The contract tracks user deposits in storage but uses real token balances when providing liquidity to Curve, so after any swap the real balances diverge from the stored ones. Users then cannot withdraw the exact amounts they deposited, and funds can become locked.
If the shelter mechanism is activated, users' accrued Concur rewards become permanently locked because the MasterChef contract continues to allocate tokens to the sheltered pool and has no way to remove it. An attacker cannot directly exploit this, but users lose their unharvested rewards.
The notifyRewardAmount function extends the reward period and recalculates the reward rate, so calling it with zero reward dilutes the rate for all stakers. An attacker with permission to call this function could repeatedly reduce the reward rate, dragging out rewards and reducing yield.
The owner of MasterChef can remove a depositor from the whitelist, which prevents that depositor from withdrawing their staked tokens and rewards. An attacker with owner privileges could lock users' funds and cause a portion of Concur tokens to remain undistributed.
The ConvexStakingWrapper contract unconditionally transfers reward tokens to a claim contract during deposit and withdraw operations, even when the incremental reward amount is zero. If a reward token that reverts on zero-value transfers is added, these transfers will fail, causing deposits and withdrawals to revert and effectively disabling them.
The withdraw function in the Shelter contract does not check if a user has already withdrawn their tokens, allowing a user who has deposited funds to call withdraw repeatedly and drain the shelter's entire balance, including other users' funds.
The deposit function in ConvexStakingWrapper calls poolInfo on a BaseRewardPool contract that does not implement that function, causing every deposit to revert. An attacker cannot exploit this for gain, but the core staking functionality is broken.
The reward calculation in ConvexStakingWrapper uses the contract's total reward token balance to determine newly claimed tokens, allowing a user to call getReward on multiple pools and then claim a disproportionate share from one pool. This lets an attacker siphon rewards from other pools, causing loss for other stakers.
The setRewardsDuration function lacks bounds checking, allowing an admin to set the rewards duration to zero, near zero, or an enormous value. This breaks the reward logic: a zero duration makes notifyRewardAmount inoperable, and extreme values cause meaningless results.
CF
Concur Finance contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.