Skip to content

Sherlock

Perennial V2 Update #1

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

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

Disclosed reports

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

ReportClassSeverityBountyCVSSVotesDisclosed
`MultiInvoker._latest` will return `latestPrice = 0` when latest oracle version is invalid causing liquidation to send 0 fee to liquidator or incorrect order execution Business logic Medium – – – 23 Nov 2023
`MultiInvoker._latest` calculates incorrect closable for the current oracle version causing some liquidations to revert Business logic Medium – – – 23 Nov 2023
MultiInvoker closableAmount the calculation logic is wrong Business logic Medium – – – 23 Nov 2023
vault.claimReward() If have a market without reward token, it may cause all markets to be unable to retrieve rewards DoS Medium – – – 23 Nov 2023
Invalid oracle version can cause the `maker` position to exceed `makerLimit`, temporarily or permanently bricking the Market contract Business logic Medium – – – 23 Nov 2023
`KeeperOracle.request` adds only the first pair of market+account addresses per oracle version to callback list, ignoring all the subsequent ones Business logic Medium – – – 23 Nov 2023
Vault `_maxDeposit` incorrect calculation allows to bypass vault deposit cap Business logic Medium – – – 23 Nov 2023
interfaceFee Incorrectly converted uint40 when stored – Medium – – – 23 Nov 2023
Attacker can call `KeeperFactory#settle` with empty arrays as input parameters to steal all keeper fees Business logic High – – – 23 Nov 2023
Vault leverage can be increased to any value up to min margin requirement due to incorrect `maxRedeem` calculations with closable and `LEVERAGE_BUFFER` Business logic High – – – 23 Nov 2023
`KeeperOracle.commit` will revert and won't work for all markets if any single `Market` is paused DoS Medium – – – 23 Nov 2023
Liquidator can liquidate user while increasing user position to any value, stealing all Market funds or bricking the contract Business logic High – – – 23 Nov 2023
Vault max redeem calculations limit redeem amount to the smallest position size in underlying markets which can lead to very small max redeem amount even with huge TVL vault Business logic High – – – 23 Nov 2023
MultiInvoker doesn't pay keepers refund for l1 calldata Business logic Medium – – – 23 Nov 2023
Settlement fee of unused markets is still charged in Vault Business logic Medium – – – 23 Nov 2023
It is possible to open and liquidate your own position in 1 transaction to overcome efficiency and liquidity removal limits at almost no cost Business logic Medium – – – 23 Nov 2023
Pending keeper and position fees are not accounted for in vault collateral calculation which can be abused to liquidate vault when it's small Business logic Medium – – – 23 Nov 2023
During oracle provider switch, if previous provider feed stops working completely, oracle and market will be stuck with user funds locked in the contract DoS Medium – – – 27 Sep 2023
`Vault.update(anyUser,0,0,0)` can be called for free to increase `checkpoint.count` and pay smaller keeper fee than necessary Business logic Medium – – – 27 Sep 2023
[Perennial Self Review] Incorrect price used during liquidation calculation Business logic Medium – – – 27 Sep 2023
MultiInvoker liquidation action will revert most of the time due to incorrect closable amount initialization Business logic Medium – – – 27 Sep 2023
MultiInvoker liquidation action will revert due to incorrect closable amount calculation for invalid oracle versions Business logic Medium – – – 27 Sep 2023
Invalid oracle version can cause the vault to open too large and risky position and get liquidated due to using unadjusted global current position Business logic Medium – – – 27 Sep 2023
commitRequested() front-run malicious invalid oralce Business logic Medium – – – 27 Sep 2023
It is possible to open and liquidate your own position in 1 transaction to overcome efficiency and liquidity removal limits at almost no cost Business logic Medium – – – 26 Aug 2023
`_accumulateFunding()` maker will get the wrong amount of funding fee Business logic Medium – – – 26 Aug 2023
Invalid oracle versions can cause desync of global and local positions making protocol lose funds and being unable to pay back all users Business logic High – – – 26 Aug 2023
PythOracle:if price.expo is less than 0, wrong prices will be recorded Business logic High – – – 26 Aug 2023
Keepers will suffer significant losses due to miss compensation for L1 rollup fees Business logic High – – – 26 Aug 2023
PythOracle `commit()` function doesn't require (nor stores) pyth price publish timestamp to be after the previous commit's publish timestamp, which makes it possible to manipulate price to unfairly liquidate users and possible stealing protocol funds Business logic Medium – – – 26 Aug 2023