Skip to content

Sherlock

Flayer

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

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

Disclosed reports

Newest first. Only what Flayer chose to make public.

Business logic

`_listing` mapping not deleted when calling `Listings::reserve` can lead to a token being sold when it shouldn't be for sale

The `reserve` function in the `Listings` contract does not delete the original `_listing` mapping for a token, so if the protected listing is later unlocked without withdrawing the token, the stale listing remains active and can be filled by a third party. This allows the token to be sold twice, causing the original reserver to lose funds and the seller to be paid twice.

Flayer

High
Access control

InfernalRiftBelow.thresholdCross verify the wrong msg.sender

The `thresholdCross` function in `InfernalRiftBelow` checks that the caller is the aliased address of `InfernalRiftAbove`, but the actual caller is the relayer address. As a result, cross-chain NFT transfers fail and user assets are lost.

Flayer

High
Business logic

Protected listings checkpoints are not always updated when the total supply changes

The ProtectedListings contract fails to create a new checkpoint whenever the total supply of collection tokens changes, leading to incorrect interest rate calculations. An attacker can exploit this by manipulating the total supply to artificially inflate the utilization rate, causing users to pay higher interest or face liquidation.

Flayer

High
Smart contracts

````UniswapImplementation.beforeSwap()```` is vulnerable to price manipulation attack

The beforeSwap hook in UniswapImplementation priced pending collectionToken fees using the current pool spot price rather than a time-weighted average, so the price could be pushed around within a single transaction. An attacker could sell tokens to depress the price, swap the pending fees at the discounted rate, then buy back, draining risk-free profit from the protocol.

Flayer

High
Business logic

Donation fees are sandwichable in one transaction

The donation of fees to a Uniswap V4 pool can be sandwiched within a single transaction because the maximum donation limit is per transaction, not per block. An attacker can add concentrated liquidity just before a fee donation and remove it immediately after, capturing a large portion of the donated fees.

Flayer

High
Business logic

Admin can not set the pool fee since it is only set in memory

The setFee function in a Uniswap implementation contract only updates a memory copy of the pool parameters, so the new fee is never saved to storage. As a result, any custom pool fee set by the admin is ignored and only the default fee applies to swaps.

Flayer

Medium
Business logic

User can cancel or modify Dutch auctions, compromising market integrity and user trust

The relist function in Listings.sol lacks the checks present in modifyListings and cancelListings that prevent changes to Dutch auctions and liquidation listings. An attacker can use a second wallet to relist a Dutch auction as a liquid listing and then cancel it, bypassing the intended lock and manipulating the auction.

Flayer

Medium
Business logic

`CollectionShutdown::execute()` doesn't ensure that all locked NFTs are sold

The CollectionShutdown::execute() function does not verify that all locked NFTs are included in the array of token IDs to be sold. An attacker could deposit an NFT after the admin's transaction is submitted, causing that NFT to remain locked and unsold, leading to indirect loss of funds for collection token holders.

Flayer

Medium
Business logic

Users can dodge `createListing` fees

A loophole in the listing fee mechanism allows users to create listings with reduced tax by reserving and liquidating their own listing, and to relist expired listings for free. An attacker could evade fees and hijack tokens at floor value.

Flayer

Medium
Business logic

In the unlockProtectedListing() function, the interest that was supposed to be distributed to LP holders was instead burned

The unlockProtectedListing function burns the entire fee paid by the user, including the interest portion, instead of distributing that interest to liquidity providers. This reduces the total supply of collection tokens, causing a mismatch with the number of NFTs and potentially making some NFTs unredeemable and the utilisation rate exceed 100%.

Flayer

Medium
Business logic

A user loses funds when he modifies only price of listings

When a user modifies only the price of a listing (leaving duration unchanged), the protocol charges tax for the full listing duration instead of the remaining time, causing the user to pay more tax than normal.

Flayer

Medium
Business logic

There is a logical error in the removeFeeExemption() function

The removeFeeExemption function checks for a value of 1 in the lower 24 bits, but setFeeExemption sets those bits to 0xFFFFFF, so the check always fails and the exemption is never removed. An attacker (or any user with an exemption) could continue to receive reduced fees indefinitely, causing fee losses for LPs and the protocol.

Flayer

Medium
Smart contracts

`ERC1155Bridgable` is not EIP-1155 compliant

The ERC1155Bridgable contract does not emit the required URI event when a token's URI is changed via setTokenURIAndMintFromRiftAbove, violating the EIP-1155 standard. This could cause integrating protocols that rely on the event to work incorrectly.

Flayer

Medium