Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: medium
Valid

Malicious user can list assets with 0 or dust price to reach the maxAssetCount limit, and prevent other sellers from listing under that buyer

Summary

This allows a malicious seller to perform a griefing attack by listing multiple assets at a price of zero or a negligible amount. This enables them to reach the maxAssetCount limit set for a buyer, effectively blocking other legitimate sellers from listing their assets under that buyer for the current round.

Vulnerability Details

There is a maxAssetCount that can be listed under a buyer for a particular round:

function list(
string calldata _name,
string calldata _symbol,
bytes calldata _desc,
uint256 _price,
address _buyer
) external {
...
if (getCurrentMarketParameters().maxAssetCount == assetsPerBuyerRound[_buyer][round].length) {
revert AssetLimitExceeded(getCurrentMarketParameters().maxAssetCount);
}
...
assetsPerBuyerRound[_buyer][round].push(asset);
...
}

A malicious seller can list many assets with an attached price of 0 or dust amount, just to reach the maxAssetCount limit of a buyer, and prevent other sellers from listing under that buyer.
This is a griefing attack

Impact

This enables malicious sellers to obstruct legitimate market activity by filling a buyer’s asset limit with low-value or zero-priced listings, effectively blocking other sellers from participating

Tools Used

Manual Review

Recommendations

There should be a minimum price that an asset should be listed

Updates

Lead Judging Commences

inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

DOS the buyer / Lack of minimal amount of listing price

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.