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
Disclosed reports
Newest first. Only what Perennial V2 Update #1 chose to make public.
-
`MultiInvoker._latest` calculates incorrect closable for the current oracle version causing some liquidations to revert
Business logic Medium Audit finding
-
MultiInvoker closableAmount the calculation logic is wrong
Business logic Medium Audit finding
-
Invalid oracle version can cause the `maker` position to exceed `makerLimit`, temporarily or permanently bricking the Market contract
Business logic Medium Audit finding
-
`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 Audit finding +2 collaborators
-
Vault `_maxDeposit` incorrect calculation allows to bypass vault deposit cap
Business logic Medium Audit finding
-
interfaceFee Incorrectly converted uint40 when stored
Medium Audit finding
-
Attacker can call `KeeperFactory#settle` with empty arrays as input parameters to steal all keeper fees
Business logic High Audit finding +1 collaborator
-
`KeeperOracle.commit` will revert and won't work for all markets if any single `Market` is paused
DoS Medium Audit finding
-
Liquidator can liquidate user while increasing user position to any value, stealing all Market funds or bricking the contract
Business logic High Audit finding
-
MultiInvoker doesn't pay keepers refund for l1 calldata
Business logic Medium Audit finding
-
Settlement fee of unused markets is still charged in Vault
Business logic Medium Audit finding
-
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 Audit finding
-
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 Audit finding
-
`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 Audit finding
-
[Perennial Self Review] Incorrect price used during liquidation calculation
Business logic Medium Audit finding
-
MultiInvoker liquidation action will revert most of the time due to incorrect closable amount initialization
Business logic Medium Audit finding
-
MultiInvoker liquidation action will revert due to incorrect closable amount calculation for invalid oracle versions
Business logic Medium Audit finding
-
commitRequested() front-run malicious invalid oralce
Business logic Medium Audit finding
-
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 Audit finding +1 collaborator
-
`_accumulateFunding()` maker will get the wrong amount of funding fee
Business logic Medium Audit finding
-
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 Audit finding
-
PythOracle:if price.expo is less than 0, wrong prices will be recorded
Business logic High Audit finding +2 collaborators
-
Keepers will suffer significant losses due to miss compensation for L1 rollup fees
Business logic High Audit finding