Two Pyth prices can be used in the same transaction to attack the LP pools
Perpetual
HighSherlock
Every publicly disclosed report for Perpetual and what kind of bugs they were.
Newest first. Only what Perpetual chose to make public.
Perpetual
HighThe 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
MediumPerpetual
MediumPrice 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
MediumThe 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
MediumThe 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
HighThe 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
MediumA 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
MediumWhitelisted 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
MediumA smart contract bug in order settlement logic fails to account for previously filled amounts when checking a ReduceOnly order, causing legitimate partial settlements to revert. An attacker could exploit this to cause a denial of service, forcing users to waste gas fees.
Perpetual
MediumThe SpotHedgeBaseMaker values collateral using a USD oracle rather than a quote-token oracle, so if USDT de-pegs, LP shares are overvalued. Early withdrawers can extract more base tokens than they should, leaving less for others.
Perpetual
MediumPerpetual
MediumThe 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
MediumThe 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