src/NFTDealers.sol:131-135 — list() enforces MIN_PRICE
src/NFTDealers.sol:189-197 — updatePrice() only checks > 0
The list function enforces a minimum listing price of $1 USDC via require(_price >= MIN_PRICE, ...):
However, updatePrice only checks that the new price is greater than zero:
A seller can list at exactly $1 USDC to pass the MIN_PRICE check, then immediately call updatePrice to set the price as low as 1 wei ($0.000001 USDC). This completely bypasses the minimum price the protocol defined and renders the MIN_PRICE constant useless.
The MIN_PRICE enforcement provides no real protection since it can be instantly bypassed via updatePrice. Any seller can set their listing to an effectively zero price in two transactions. The MIN_PRICE constant and its check in list() are dead code from a security standpoint.
Add the MIN_PRICE check to updatePrice:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.