Hunt prep
Before you test Flayer
What 47 disclosed reports say about Flayer: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 36 | 0 | – | – | $0 |
| Smart contracts lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Stale shutdown params can be reused to drain all funds from `CollectionShutdown` contract
The contract should disallow calling `reclaimVote` after shutdown execution and properly clean up all `CollectionShutdownParams` in `start`.
Disclosed
-
`_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 should delete the existing `_listing` mapping for the token, as done in `_fillListing` and `cancelListing`.
Disclosed
-
InfernalRiftBelow.thresholdCross verify the wrong msg.sender
The check should validate that `msg.sender` is the relayer address or the L2 cross-domain messenger, and optionally verify the original sender via `xDomainMessageSender`.
Disclosed
-
Protected listings checkpoints are not always updated when the total supply changes
Correctly update collection checkpoints whenever the total supply of collection token changes.
Disclosed
-
````UniswapImplementation.beforeSwap()```` is vulnerable to price manipulation attack
The protocol should value the fee swap using a TWAP oracle, or convert collected collectionToken fees to WETH immediately when they are received.
Disclosed
-
Donation fees are sandwichable in one transaction
The donation limit should be tracked per block, not per transaction, to prevent repeated or large donations from being sandwiched.
Disclosed
-
Incorrect index handling in checkpoint creation leads to incorrect initial checkpoint retrieval and potential DoS
The function should return `index_ - 1` when updating an existing checkpoint at the same timestamp.
Disclosed
-
Lister is overpaying during the cancel of his listing on ```Listings::cancelListings()```
The fix should subtract the fees from the required amount so the user does not repay used tax.
Disclosed
-
Previous `beneficiary` will not be able to claim `beneficiaryFees` if current beneficiary is a pool
The check should be removed because pool beneficiaries store fees in a different mapping, so a pool's beneficiaryFees would be zero and the claim would return early anyway.
Disclosed
-
`ERC721Bridgable` and `ERC1155Bridgable` are not EIP-2981 compliant, and fail to correctly collect or attribute royalties to artists
The contracts should be changed to report per-NFT royalty amounts and recipients, and to track those recipients so royalties can be attributed correctly.
Disclosed
-
Admin can not set the pool fee since it is only set in memory
Use storage instead of memory for poolParams in setFee().
Disclosed
-
manipulation of the Utilization Rates using the locker.sol function deposit and redeem to Force Liquidations
The recommendation is to charge fees on deposit and redeem to prevent costless manipulation of the total supply.
Disclosed
-
Reserving a listing checkpoints the collection's `compoundFactor` at an intermediary higher compound factor
The _collateral should be burned after the protected listing is created, so the checkpoint uses the correct total supply.
Disclosed
-
The unused tokens from the user’s initialization of UniswapV4‘s pool will be locked in the UniswapImplementation contract
The contract should be updated to refund any leftover tokens to the user after liquidity is added.
Disclosed
-
There is a calculation error inside the calculateCompoundedFactor() function, causing users to overpay interest
The calculation should divide by 10000 instead of 1000 to correctly account for the interest rate's precision.
Disclosed