Skip to content

Sherlock

Axis Finance

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

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

Disclosed reports

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

Smart contracts

Overflow in curate() function, results in permanently stuck funds

The curate() function adds the curator fee to the funding amount inside an unchecked block, so if the prefunded amount is close to the maximum a uint96 can hold, the addition overflows and the recorded funding becomes much smaller. This leaves a large portion of the auction's tokens permanently stuck in the contract, as the withdrawal logic uses the corrupted funding value.

Axis Finance

High
DoS

Settlement of batch auction can exceed the gas limit

Settling a batch auction iterates over all bids, which can exceed the block gas limit if there are too many bids, making settlement impossible. This causes sellers and bidders to lose their funds.

Axis Finance

Medium
Smart contracts

Unsafe casting within _purchase function can result in overflow

The _purchase function in FPAM.sol casts the result of a payout calculation to uint96, which can overflow when the quote token has fewer decimals than the base token and the amount is large. An attacker could receive fewer base tokens than expected, causing a loss of funds.

Axis Finance

Medium
Business logic

Downcasting to uint96 can cause assets to be lost for some tokens

The total bid amount in an auction is downcast from uint256 to uint96 without checks, which can overflow for tokens with low unit value. This leads to a loss of funds for the auctioneer when the total exceeds the maximum uint96 value.

Axis Finance

High
Business logic

Module's gas yield can never be claimed and all yield will be lost

The protocol's modules on Blast never set their gas yield mode to claimable, leaving it at the default VOID, so the auction house cannot claim any gas yield. As a result, all gas yield that would have accrued is permanently lost.

Axis Finance

High
Business logic

Malicious user can overtake a prefunded auction and steal the deposited funds

A new auction's routing details were always written to index 0 of the lotRouting mapping because the lotId variable was still zero when the storage pointer was taken. An attacker could create a non-prefunded auction with the same base token, become the seller of lot 0, and cancel it to steal the honest user's prefunded deposit.

Axis Finance

High
Business logic

User's can be grieved by not submitting the private key

In EMPAM auctions, the private key must be submitted to settle the auction, but the key holder can refuse to submit it, preventing bidders from claiming their assets. This allows the key holder to grief bidders.

Axis Finance

Medium
Business logic

Inaccurate value is used for partial fill quote amount when calculating fees

The fee calculation for partial fills used an inaccurate quote token amount, causing the sum of fees allocated to the protocol and referrer to exceed the fees actually collected from the seller. This could prevent reward claiming or payment withdrawal due to insufficient tokens.

Axis Finance

Medium
Business logic

Bidder's payout claim could fail due to validation checks in LinearVesting

The LinearVesting derivative's mint function rejects any mint after the derivative's expiry timestamp, so when a bidder tries to claim a payout for an expired derivative, the internal call to mint reverts and the claim fails. An attacker (or a seller) could exploit this by waiting until after expiry before revealing their private key, preventing bidders from claiming their rewards.

Axis Finance

Medium
DoS

It is possible to DoS batch auctions by submitting invalid AltBn128 points when bidding

The ECIES library's point validation did not check that the x and y coordinates were smaller than the field modulus, allowing a bidder to submit an invalid public key that passed validation. When the auction decryption process later attempted to use that key, the ecMul precompile reverted, preventing all bids from being decrypted and locking funds permanently.

Axis Finance

High
Business logic

Bidders can not claim their bids if the auction creator claims the proceeds

If the auction creator claims proceeds before bidders claim their bids, the auction status changes to Claimed, and bidders can no longer claim their bids because the claim function requires the status to be Settled. This locks bidders' funds in the auction house.

Axis Finance

High
Business logic

Incorrect `prefundingRefund` calculation will disallow claiming

The prefundingRefund calculation in claimProceeds is incorrect because routing.funding is already reduced when bidders claim payouts, leading to an underflow and revert. This prevents sellers from claiming proceeds.

Axis Finance

High
Business logic

[M-1]

The claimProceeds function attempts to transfer a zero amount of the base token when the prefunding refund is zero. If the base token reverts on zero transfers, the seller cannot claim proceeds and their funds remain locked.

Axis Finance

High
Business logic

Auction creators have the ability to lock bidders' funds

Auction creators could cancel an auction at the exact moment it concludes because the check used a strict less-than comparison, allowing cancellation when the timestamp equals the conclusion time. This locked bidders' quote tokens in the auction house, as they could not refund or claim bids.

Axis Finance

High