Skip to content

Sherlock

Knox Finance

Every publicly disclosed report for Knox Finance and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
3
first disclosure
2022
Find Knox Finance on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Knox Finance chose to make public.

Business logic

Auction can potentially sell more contracts than it has collateral for

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.

Knox Finance

High
Business logic

`epochsByBuyer[]` can lose records

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.

Knox Finance

Medium
Business logic

## Auction can be ended with large limit order

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.

Knox Finance

Medium
DoS

[NAZ-M6] Unbounded loop in `_previewWithdraw() && _redeemMax()` Can Lead To DoS

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.

Knox Finance

High
Smart contracts

Underflow in ```_previewWithdraw``` could prevent withdrawals

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.

Knox Finance

High