Skip to content

Code4rena

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Every publicly disclosed report for Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda and what kind of bugs they were.

disclosed reports
31
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda chose to make public.

Business logic

MarketFees : Primary sales not detected in some scenarios

The fee-splitting loop in the marketplace contract stops early when one royalty share exceeds 100%, so the check that detects the seller as a royalty recipient is skipped. In that case a primary sale is treated as a secondary sale and the seller is paid a royalty on top of the sale proceeds.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

MarketFees : Seller referrer fee can underflow

The fee calculation in MarketFees subtracts a seller referrer fee from the seller or creator revenue without checking that the fee is smaller than that revenue. With certain valid fee settings, the subtraction underflows and the sale reverts, so legitimate sales cannot complete.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

MarketFees : Seller referrer fee not paid when no creator royalty recipients exist for a sale

The seller referrer fee calculation sits inside a conditional block that only runs when creator royalty recipients exist or the sale is assumed primary. When there are no creator recipients and the sale is not primary, the fee is always zero, so the exhibition curator never receives the configured seller referral fee.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

mintFromFixedPriceSale for a custom contract can lead to users losing funds

A custom NFT contract implementing the required interface could return zero instead of reverting when all tokens are minted, causing the drop market to distribute funds without minting an NFT. A user calling the mint function after the sale ended would lose their payment and receive nothing.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

NFT of NFT collection or NFT drop collection can be locked when calling _mint or mintCountTo function to mint it to a contract that does not support ERC721 protocol

The NFT minting functions use OpenZeppelin's _mint instead of _safeMint, so if an NFT is minted to a contract that does not implement the ERC721 receiver interface, the NFT becomes locked and cannot be retrieved. An attacker could exploit this by minting to such a contract, causing permanent loss of the NFT.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

User may get all of the creator fees by specifying high number for himself

A creator could set their royalty share above the basis points limit, causing the first creator to receive all royalties. An attacker could exploit this to take all fees if they control the first entry.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Possible to bypass saleConfig.limitPerAccount

The per-account purchase limit in a fixed-price NFT sale could be bypassed by transferring purchased NFTs to another address and then buying more. An attacker could use a smart contract to repeatedly buy and transfer NFTs, potentially acquiring the entire drop.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
DoS

NFT creator sales revenue recipients can steal gas

The NFT marketplace contract forwards a high gas limit (210,000) to each of up to five creator recipients when distributing sale revenue. A malicious creator could consume that gas, forcing the buyer to pay extra transaction fees.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Creator fees may be burned

The royalty recipient lookup could return the zero address, and the contract would send ETH to that address, burning the funds. An attacker could not directly exploit this, but a misconfiguration could cause a portion of sale proceeds to be lost.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Forget to check “Some manifolds contracts of ERC-2981 return (address(this), 0) when royalties are not defined” in 3rd priority - MarketFees.sol

The royalty lookup in the third priority path of MarketFees.sol did not ignore a zero royalty amount, so a contract returning (address(this), 0) was treated as a valid recipient. An attacker could cause sale proceeds to be sent to the market contract itself, where the funds become stuck.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Creators can steal sale revenue from owners’ sales

A creator could manipulate the royalty registry to make the seller appear as a royalty recipient, causing all sale revenue to be sent to the creator instead of the owner. This allowed the creator to steal the sale price minus fees.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

High
Business logic

Royalties can be distribution unfairly among creatorRecipients for NFT contracts with non-standard getRoyalties() returns

The NFT marketplace contract assumes that the getRoyalties() function returns values in basis points (where 100% is 10,000), but some NFT contracts may use a different precision. If a contract returns values with higher precision, the royalty distribution logic incorrectly treats any share above 10,000 as invalid and sends all royalties to the first recipient, unfairly distributing funds.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Access control

Escrowed NFT can be stolen by anyone if no active buyPrice or auction exists for it

An NFT held in escrow by the market contract without an active buy price or auction could be taken by anyone using a tiny offer and accepting it, because the transfer logic did not verify that the seller was authorised by an escrow manager. An attacker could obtain such NFTs for only gas costs and a minimal offer price.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

NFT owner can create multiple auctions

The NFT auction contract allowed an owner to create multiple auctions for the same token because the escrow transfer did not revert when an auction already existed. An attacker could then cancel both auctions, permanently locking the last bidder's funds.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

High
Business logic

MAX_ROYALTY_RECIPIENTS_INDEX set too low

The smart contract caps the number of royalty recipients at a fixed index, so only the first five creators receive payouts and any additional creators are ignored. An attacker could not directly exploit this, but creators beyond the limit would lose their expected royalties.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

LockedBalance library should drop parameters to 96/32 bits

The LockedBalance library packs two 128-bit locked balances into one 256-bit storage slot but does not truncate the totalAmount and expiration parameters to their intended bit widths. If a caller passes values larger than 96 or 32 bits, bits could spill into the adjacent locked balance, potentially increasing an unrelated balance and allowing theft of funds.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Missing receiver validation in withdrawFrom

The withdrawFrom function in FETH.sol did not check that the recipient address was not the zero address. If a user passed the zero address, the withdrawn funds would be sent there and lost.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Primary seller can avoid paying the primary fee

The Foundation NFT marketplace charges a 15% fee on primary sales and 5% on secondary sales, but the conditions for a primary sale can be bypassed by the seller. An attacker could transfer the NFT to another wallet or make a private sale to themselves for a tiny amount, then sell publicly as a secondary seller, paying only 5% instead of 15%.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Private sale spoofing

Private sales on Foundation's NFT market do not escrow the NFT, so a seller can sign a private sale and then front-run the buyer by transferring the NFT to another wallet they control. This can cause the buyer's transaction to fail and may mislead third-party off-chain markets that rely on the signature.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

adminAccountMigration() Does Not Update buyPrice.seller

The adminAccountMigration function updates the seller address for auctions but not for buy prices, so if an NFT has both an auction and a buy price, migrating the account leaves the buy price seller unchanged. This creates a deadlock where neither the old nor new address can cancel the auction or withdraw the NFT without the other's cooperation.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Exchange does not split royalty revenue correctly

The exchange contract only pays royalties to the first four recipients in the creatorRecipients array, ignoring any additional recipients. If the array is sorted from low to high, the creators with the largest shares receive nothing.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
DoS

_getCreatorPaymentInfo() is Not Equipped to Handle Reverts on an Unbounded _recipients Array

The _getCreatorPaymentInfo() function uses try/catch to handle reverts from external calls, but reverts from internal calls (such as iterating over an unbounded _recipients array) are not caught. This could cause valid NFT contracts to revert during fund distribution, potentially locking NFTs in the contract.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Access control

Upgradable escrow contract

The escrow contract is upgradeable, so users must approve their NFTs to an admin-controlled contract that can be changed. An attacker who compromises the admin could upgrade the contract to transfer approved NFTs to themselves.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Fees Are Incorrectly Charged on Unfinalized NFT Sales

An unfinalized auction allowed the highest bidder to accept an offer and trigger a sale before the original auction sale was finalised, causing the first-sale flag to be set incorrectly. This meant the creator avoided the primary foundation fee on the original auction sale.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

EIP-712 signatures can be re-used in private sales

The private sale function did not track whether an EIP-712 signature had already been used, so a buyer could reuse the same signature to repurchase the NFT if the seller regained ownership and relisted it. An attacker could buy the NFT again at the original price, potentially profiting if the NFT's value had risen.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Race condition

Approve race condition in FETH

The FETH token's approve function lacks protection against the known multiple withdrawal attack, where a spender can front-run an allowance change to spend both the old and new allowances. An attacker could exploit this to transfer more tokens than the owner intended.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

Inappropriate support of EIP-2981

The NFT marketplace contract always passes a fixed sale price of 10,000 basis points when querying EIP-2981 royalty information, instead of the actual sale price. This means recipients entitled to less than 1 basis point of the sale price may receive no royalties, and collections with a total royalty rate below 10% are scaled up to 10%.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

Medium
Business logic

An offer made after auction end can be stolen by an auction winner

An offer made for an NFT after an auction ended but before the winner collected the NFT could be stolen by the auction winner. The winner could accept the offer, causing the NFT to be transferred to themselves while the offer amount was also paid to them, leaving the offer maker without the NFT or their funds.

Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

High