The MultiInvoker contract's _latest function returned a price of zero when the latest oracle version was invalid, because it did not check validity. This caused liquidations to charge no fee and some trigger orders to execute at incorrect prices.
The MultiInvoker contract incorrectly calculates the closable amount by using the latest position's magnitude instead of the pending position's magnitude when updating the previous magnitude in a loop. This can cause the liquidation fee calculation to be wrong, potentially leading to reverts in some liquidation cases.
When an oracle version is invalid, pending positions are invalidated and accumulated without applying position limit checks, which can push the global maker position above the maker limit. This causes all market updates to revert, temporarily or permanently bricking the contract and preventing users from withdrawing funds.
The KeeperOracle.request function returns early if the oracle version was already requested, so only the first market and account are added to the callback list for that version. As a result, subsequent markets and accounts that requested the same oracle version are never called back when the oracle settles.
The vault's maximum deposit calculation incorrectly adds claimable assets to the cap, allowing users to deposit beyond the vault's deposit cap when there are redeemed but unclaimed assets. An attacker could repeatedly deposit and redeem to bypass the cap and deposit unlimited funds.
The interface fee amount is checked against a uint48 maximum but stored as uint40, so values above about 1.1M are truncated, potentially to zero. An attacker or user could set a large interface fee that is saved incorrectly, leading to a smaller or zero fee being charged when the order executes.
The KeeperFactory#settle function does not check for empty input arrays, so an attacker can call it with empty arrays and still receive a keeper fee. By repeating this in a loop, an attacker could drain all keeper fees from the protocol.
The vault's maxRedeem calculation incorrectly multiplies the closable amount by LEVERAGE_BUFFER, allowing a user to redeem more collateral than the position reduction permits. This can leave the vault with a small position and little collateral, effectively increasing leverage beyond the configured limit and exposing depositors to liquidation risk.
The KeeperOracle contract's commit function iterates over all markets that requested a price and calls update on each, but if any market's update reverts (e.g., because the market is paused), the entire commit reverts. This can temporarily brick the oracle and stop trading in all other markets sharing the same KeeperOracle instance.
A liquidator could increase a user's position to an arbitrarily large size during liquidation because the check only ensured the closable amount was zero, not that the order reduced the position. This allowed the liquidator to break the market's accounting and potentially steal all funds or brick the contract.
The vault's maximum redeem amount was limited by the smallest open position across underlying markets, so a tiny position in one market could cap redemptions at a very small amount even for a large vault. An attacker could not directly exploit this, but users with large deposits would need many transactions to redeem, losing funds to gas or being unable to redeem at all.
The MultiInvoker contract did not include the L1 calldata fee in the keeper refund because it inherited from the base Kept contract, which returns zero for calldata fee. As a result, keepers might not be sufficiently incentivised to execute orders.
A vault charges the fixed settlement fee of every registered market, including markets whose weight has been set to zero to retire them. Because those fees are deducted from the amount users can claim, each settlement leaks funds from vault users.
The protocol's margin check only verified the current position's margined amount, while the largest settled position was checked against the lower maintained amount. This allowed a user to reduce their position, withdraw collateral to the liquidation edge, commit a favourable oracle price, and liquidate their own position in one transaction, bypassing efficiency and liquidity removal limits.
The vault calculates its collateral using market collateral values that exclude pending keeper and position fees, while the underlying market includes those fees in health checks. An attacker could make many small deposits to inflate fees, artificially increasing the vault's actual leverage and potentially liquidating it.
When switching oracle providers, the protocol continues to use the previous provider's price feed until a final price is committed. If that feed stops working permanently, no valid price can be committed, so the oracle and market become stuck, preventing users from withdrawing funds.
A vault contract allows any user to call an update function with zero amounts, which increases a checkpoint counter without paying any fee. An attacker can use multiple addresses to inflate this counter and reduce their share of the keeper fee, causing other users to pay more.
The MultiInvoker contract's _latest function fails to initialise the closableAmount variable, so it often returns zero instead of the correct amount. This causes most liquidation actions to revert, preventing liquidators from closing positions and earning fees.
MultiInvoker incorrectly calculates the closable amount when settling positions with an invalid oracle version, causing liquidation actions to revert. This prevents liquidators from receiving fees and may cause loss of funds.
The vault's strategy library used an unadjusted global position from the market, which could be incorrect after an invalid oracle version. This could cause the vault to open an excessively large and risky position, potentially leading to liquidation and loss of user funds.
The commit and commitRequested functions both update the same last-committed publish time and reject any price whose publish time is not newer. An attacker can front-run a keeper's commitRequested call with a crafted commit call, which advances that timestamp and makes the keeper's transaction revert, leaving the oracle version uncommitted.
The funding fee calculation for the maker side in `_accumulateFunding()` is incorrect, causing the maker to receive the entire funding fee instead of a proportional share when the skew between long and short positions exceeds the maker's position. An attacker could exploit this to unfairly gain funding fees at the expense of other participants.
The protocol's global and local position settlement can follow different paths when an oracle version is invalid, causing a temporary desync in profit and loss accounting. This can lead to incorrect collateral balances, allowing some users to withdraw more than deposited and leaving the last user unable to withdraw all funds.
The PythOracle contract's _recordPrice function mishandles prices with negative exponents, recording them as positive exponents instead. This causes a massive deviation in recorded prices, potentially leading to incorrect payoffs.
The keeper compensation mechanism only accounts for L2 execution gas and ignores the often much larger L1 rollup fee, so keepers can lose money when submitting transactions. This can cause keepers to stop working, blocking oracle price updates and order execution.
The PythOracle contract's commit() function does not enforce that the Pyth price publish timestamp is later than the previous commit's publish timestamp, unlike commitRequested(). This allows an attacker to commit prices out of order, potentially causing unfair liquidations or loss of protocol funds.
PV
Perennial V2 Update #1
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.