Skip to content

Code4rena

Sturdy contest

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

disclosed reports
8
most reported class
Business logic
bug classes found
2
first disclosure
2022
Find Sturdy contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

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

Business logic

Hard-coded slippage may freeze user funds during market turbulence

The vault contracts use a hard-coded 99% slippage tolerance when swapping yield tokens for the withdrawal asset, so if the market price of the yield token drops by more than 1% the swap reverts and users cannot withdraw. An attacker cannot directly exploit this, but during market turbulence users' funds may become temporarily locked.

Sturdy contest

High
DoS

Withdrawing ETH collateral with max uint256 amount value reverts transaction

Withdrawing ETH collateral using the maximum uint256 amount causes the transaction to revert because the code tries to call decimals() on the zero address, which is not a valid token. An attacker could not exploit this for gain, but it prevents legitimate withdrawals of the full ETH balance.

Sturdy contest

Medium
Business logic

Possible lost msg.value

The depositCollateral function in GeneralVault and its implementations (LidoVault, ConvexCurveLPVault) can lose ETH sent as msg.value when the asset is an ERC20 token, or when more ETH than the specified amount is sent for an ETH deposit. An attacker or careless user could permanently lose funds by calling depositCollateral with mismatched asset and value.

Sturdy contest

Medium
DoS

ConvexCurveLPVault’s _transferYield can become stuck with zero reward transfer

The vault's reward transfer function does not check for zero amounts, so if a reward token that reverts on zero-value transfers is included, the entire reward collection can become stuck. An attacker could not directly exploit this, but the availability of reward gathering is affected.

Sturdy contest

Medium