Skip to content

Code4rena

Duality Focus contest

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

disclosed reports
5
most reported class
Access control
bug classes found
2
first disclosure
2022
Find Duality Focus contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Duality Focus contest chose to make public.

Access control

Undercollateralized loans possible

The _setPoolCollateralFactors function did not check that the collateral factor is below 100%, so it could be set to 200% and allow borrowing more than the collateral is worth, stealing from the pool.

Duality Focus contest

Medium
Business logic

Comptroller._setUniV3LpVault will always cause in-use uniswapV3 positions to become stuck in UniV3LpVault

The Comptroller contract allows its admin to change the UniV3LpVault address, but existing Uniswap V3 position NFTs become stuck because collateral calculations and withdrawals require the vault address to match. An attacker could not directly exploit this, but users could be unable to withdraw their NFTs or have liquidations broken.

Duality Focus contest

Medium
Access control

Arbitrary contract call within UniV3LpVault._swap with controllable swapPath

The vault's swap function accepts a user-supplied path and only validates the first and last tokens, not intermediate ones. An attacker could create a malicious token and pools to execute arbitrary code during the swap, though no concrete exploit was demonstrated.

Duality Focus contest

Medium