Skip to content

Code4rena

Perennial contest

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

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

Disclosed reports

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

Audit finding

Chainlink’s latestRoundData might return stale or incorrect results

The smart contract used Chainlink's latestRoundData without checking whether the returned price was stale or invalid. An attacker could exploit this to cause the protocol to use outdated or incorrect prices, potentially leading to financial loss.

Perennial contest

Medium
Business logic

Wrong shortfall calculation

The settleAccount function in OptimisticLedger incorrectly updates the shortfall by adding the new shortfall twice, causing the total shortfall to double each time a shortfall is created. This could prevent users from withdrawing the correct amount of funds and require donations to resolve the inflated shortfall.

Perennial contest

High
Business logic

withdrawTo Does Not Sync Before Checking A Position’s Margin Requirements

The withdrawTo function checks margin requirements using an oracle price that may be outdated because it does not sync the account first. An attacker could withdraw collateral while their position is undercollateralised, potentially leaving bad debt.

Perennial contest

High
Access control

No checks if given product is created by the factory

The Collateral contract does not verify that a product was created by the factory, allowing an attacker to deploy a fake product that returns arbitrary maintenance amounts. This lets the attacker make deposits to the fake product stuck and later liquidate to claim the full collateral.

Perennial contest

Medium
Access control

Multiple initialization of Collateral contract

The Collateral contract's initialize function lacks an initializer modifier, allowing it to be called multiple times. An attacker could front-run the deployment, initialize with a zero factory address, perform malicious actions, and still let the project re-initialize without error.

Perennial contest

Medium