A Buyer's rounds can be DoSed (Denial-of-service) due to a strict maxAssetCount check against total assets listed.
A Seller can list assets to the buyer using the Swan::list and Swan::relist functions.
The issue here is that it implements a check against all the total listings of that particular round against maxAssetCount.
A malicious actor can DoS these functions by listing assets with dust or 0 value ensuring no genuine seller gets to list to that particular buyer.
Replace the function in the test/Swan.test.ts file at L167.
Leads to Denial of service for the buyer agent.
Manual Review + Hardhat
Consider implementing a seller => buyer => round mapping to avoid checking against total listings.
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.