Skip to content

Code4rena

Covalent contest

Every publicly disclosed report for Covalent contest and what kind of bugs they were.

disclosed reports
5
most reported class
Business logic
bug classes found
3
first disclosure
2021
Find Covalent contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Covalent contest chose to make public.

Business logic

unstake should update exchange rates first

The unstake function computes the number of shares to remove using the old exchange rate before updating it, causing users to burn more shares than necessary and lose accrued rewards. An attacker could exploit this to deprive themselves or others of rewards, though the primary impact is loss of funds for the user.

Covalent contest

High
Business logic

Incorrect updateGlobalExchangeRate implementation

The updateGlobalExchangeRate function mishandles the case when totalGlobalShares is zero, causing reward tokens to become permanently locked in the contract. An attacker could trigger this by disabling a validator or through unstaking, leading to locked funds.

Covalent contest

Medium
Business logic

Validator can fail to receive commission reward in redeemAllRewards

A validator can fail to receive commission rewards when calling redeemAllRewards because a check requires rewards to be greater than zero, which may revert even if the validator has commission to receive. This can cause issues when the validator is handled by a contract.

Covalent contest

Medium
Smart contracts

reward tokens could get lost due to rounding down

The reward-token deposit and withdrawal functions divide the token amount by the per-epoch allocation and round the result down, so any remainder is not counted towards the reward schedule. This means a portion of deposited reward tokens can be stranded and never paid out to stakers.

Covalent contest

Medium