Skip to content

Sherlock

Perennial V2 Update #4

Every publicly disclosed report for Perennial V2 Update #4 and what kind of bugs they were.

disclosed reports
7
most reported class
Business logic
bug classes found
1
first disclosure
2025
Find Perennial V2 Update #4 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Perennial V2 Update #4 chose to make public.

Business logic

Intent orders are guaranteed to execute, but fees from these orders are not accounted in collateral, allowing user to withdraw all collateral ignoring these pending fees

Intent orders are guaranteed to execute, but their fees are not included in collateral calculations until the epoch price is committed. An attacker can open and close positions via Intents, withdraw all collateral, and later claim referral fees, leaving the account in bad debt and stealing funds from the market.

Perennial V2 Update #4

High
Business logic

Anyone can steal all funds from the `market` due to incorrect health accounting for pending pnl from difference of intent price and market price when multiple intents are used

The protocol's health check only accounts for the current intent's pending profit and loss, ignoring other pending intents for the same account. An attacker can submit multiple intents that individually keep the account healthy but collectively make it deeply insolvent, then withdraw inflated profits from another account, stealing all market funds.

Perennial V2 Update #4

High
Business logic

`InvariantLib` uses current position for margin check allowing to withdraw collateral while the position decrease is only pending and can cause unexpected immediate user liquidation

The margin check in InvariantLib.validate uses the current position (including pending changes) while the liquidation maintenance check uses the latest position, so a user who reduces their position and withdraws collateral can be immediately liquidated. An attacker can also self-liquidate to steal liquidation fees.

Perennial V2 Update #4

High
Business logic

Vault.settle(account=coordinator) will lose profitShares

The Vault.settle function credits profit shares to the coordinator by writing directly to storage, but does not update the in-memory [redacted].shares. If the settlement account is the coordinator, the final save overwrites the credited shares with the old value, causing the coordinator to lose profit shares.

Perennial V2 Update #4

Medium