Skip to content

Sherlock

Perpetual

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

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

Disclosed reports

Newest first. Only what Perpetual chose to make public.

Business logic

There may be excess funds in the PnL pool or bad debt due to the funding fee

The funding fee mechanism in the Perpetual protocol can cause excess funds in the PnL pool or bad debt because the sum of openNotionals of payers may not equal that of receivers. This can lead to users being unable to receive their funding fees or to a reduction in users' margins and borrowing fees.

Perpetual

Medium
Business logic

Price band caps apply to decreasing orders, but not to liquidations

Price band caps limit the price at which normal orders can be settled, but liquidations have no such limitation. An attacker could bypass price bands during liquidations, potentially causing loss of funds under certain external conditions.

Perpetual

Medium
Business logic

Incorrect premium calculation in OracleMaker

The premium charged by OracleMaker depends on the maker's free collateral, so a user can deposit collateral to lower the premium, open a position cheaply, and then withdraw the collateral. This lets the user bypass the intended premium and leaves the maker with uncompensated risk.

Perpetual

Medium
Business logic

Funding Fee Rate is calculated based only on the Oracle Maker's skew but applied across the entire market, which enables an attacker to generate an extreme funding rate for a low cost and leverage that to their benefit

The funding fee rate is calculated solely from the Oracle Maker's position skew but applied to all market positions, allowing an attacker to open a large long on the Oracle Maker to create an extreme funding rate, then offset with a short on the SpotHedge maker to profit from the funding fee paid by longs. This can also cause liquidations and dilute the PnL pool.

Perpetual

High
Business logic

OracleMaker's price with spread does not take into account the new position

The OracleMaker's spread calculation ignores the size of the incoming order, so large trades are quoted the same price as small ones. An attacker can bypass the spread by opening a reverse position first, forcing the Maker to quote the oracle price without the intended premium.

Perpetual

Medium
Business logic

Loss of funds for trader because whitelisted maker can't be liquidated

A whitelisted maker cannot be liquidated, so when it accumulates losses beyond its margin, a trader's attempt to close a profitable position reverts because the maker's margin check fails. The trader cannot withdraw their profit and may lose funds.

Perpetual

Medium
Business logic

Borrow fees can be arbitrarily increased without the maker providing any value

Whitelisted makers in the perpetual protocol can increase their borrowing fee earnings by opening and immediately closing positions against other makers, artificially inflating their utilisation ratio without providing liquidity over time. This allows them to extract excessive fees from traders on the opposite side.

Perpetual

Medium
Business logic

No slippage control on maker LP `deposit()`/`withdraw()`

The maker LP deposit and withdraw functions lack slippage control, so users cannot specify a minimum amount of collateral to receive. An attacker could exploit a flash crash to cause a user to receive half the expected amount when redeeming shares.

Perpetual

Medium
Business logic

Withdrawal caps can be bypassed by opening positions against the SpotHedgeBaseMaker

The CircuitBreaker's withdrawal limit does not account for base tokens deposited into the SpotHedgeBaseMaker until they are swapped into quote tokens and deposited into the vault. An attacker can open large short positions to trigger this swap, inflating the vault's TVL and thereby increasing the amount they can withdraw beyond the intended percentage limit.

Perpetual

Medium