Skip to content
Business logic Audit finding Intermediate

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.

cmichel Follow

Originally disclosed on Code4rena

Submitted by cmichel

NFTMarketPrivateSale.sol#L156

Similar to [spoofing in finance](https://en.wikipedia.org/wiki/Spoofing_(finance%29), users can create private sales with correct signatures but then frontrun the buy with a transfer to a different wallet they control.

No funds are lost as the NFT <> FETH exchange is atomic but it can be bad if third parties create a naive off-chain centralized NFT market based on this signature feature. It’s also frustrating for the users if they try to accept the private sale but their transaction fails.

Recommended Mitigation Steps

This is made possible because private sales do not keep the NFT in escrow. Consider escrowing the NFT also for private sales.

NickCuso (Foundation) acknowledged and commented:

We are actually considering moving private sales to an escrow system. But we’ll leave it as-is for now for backwards compatibility and to simplify our upcoming launch.

We understand this could happen and will update the comments to make that more clear.


The original report as published on Code4rena, by cmichel. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Private sales do not keep the NFT in escrow, allowing the seller to transfer it away after signing.

Impact

No funds are lost because the exchange is atomic, but buyers can experience failed transactions and third-party off-chain markets relying on the signature could be misled.

What the attacker needed

Seller signs a private sale; seller transfers NFT before buyer executes

The fix

The report recommends escrowing the NFT for private sales, though the project acknowledged the issue and chose to leave it as-is for now.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A private sale lets a seller sign a message saying 'I will sell this NFT to you for this price'. But the NFT is not locked up, so the seller can quickly move the NFT to another wallet before the buyer's purchase goes through. The buyer's transaction then fails, and the seller keeps the NFT.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by cmichel

View all

196 more disclosed reports, best first.

More from Foundation Exhibition, Scheduling & Early Access Solo Audit by Lambda

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.