The `_getNextFriday` function incorrectly returns the same week's Friday when the input timestamp falls between Monday 12am and 8am, instead of the following Friday. This causes option expiry dates to be set incorrectly, potentially disrupting the protocol.
The auction contract's withdrawal function incorrectly calculates the number of contracts sold because it resets the count for each withdrawal, allowing more contracts to be sold than the total collateral available. An attacker could withdraw more than their fair share, leaving the protocol with insufficient collateral and creating naked options.
The vault's performance fee calculation includes the value of early withdrawals, so users who withdraw before the epoch ends avoid paying the fee while the fee is still taken from the vault, reducing the share price for remaining users. This forces other users to pay the fees for those who withdrew early.
Cancelling one limit order removes the buyer's epoch record even though the user may still have other open orders, so the per-buyer epoch list becomes inaccurate. Users relying on that list for new orders could be misled and potentially lose funds.
The auction contract used a sentinel value of type(int128).max to indicate cancellation, but a limit order at that price passed all checks. An attacker could place such an order at the start of the auction, causing the auction to be finalised and the trader refunded, effectively preventing the auction from taking place.
An internal maths helper in the option pricing library reverts when given a value below 185, because a later division by a ruler that has become zero causes a division-by-zero error. This could stop auctions from starting, since the auction setup path calls this helper through the pricer's rounding functions.
The smart contract uses Chainlink's latestRoundData() to fetch prices but does not check whether the returned data is stale. An attacker could exploit stale prices to cause incorrect valuations.
Two functions in the auction and queue contracts loop over every order or token ID held by a user, performing checks, maths and external calls inside the loop. If enough orders accumulate, the transaction can run out of gas and revert, so the affected withdrawal and redemption calls could fail.
An underflow in the _previewWithdraw function occurs when totalContractsSold exceeds auction.totalContracts, causing the transaction to revert. This prevents users from withdrawing their options from the auction contract.
The order book contract reuses order IDs after cancellation, causing new orders to overwrite existing ones. An attacker can place an order that overwrites another user's order, preventing the victim from withdrawing their funds.
KF
Knox Finance
High
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.