You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Factory.createMarket iterates over all _cardAffiliateAddresses.
Impact
The transactions can fail if the arrays get too big and the transaction would consume more gas than the block limit.
This will then result in a denial of service for the desired functionality and break core functionality.
Recommended Mitigation Steps
Perform a _cardAffiliateAddresses.length == 0 || _cardAffiliateAddresses.length == tokenUris.length check in createMarket instead of silently skipping card affiliate cuts in Market.initialize.
This would restrict the _cardAffiliateAddresses length to the nftMintingLimit as well.
The text was updated successfully, but these errors were encountered:
Handle
cmichel
Vulnerability details
Vulnerability Details
The
Factory.createMarket
iterates over all_cardAffiliateAddresses
.Impact
The transactions can fail if the arrays get too big and the transaction would consume more gas than the block limit.
This will then result in a denial of service for the desired functionality and break core functionality.
Recommended Mitigation Steps
Perform a
_cardAffiliateAddresses.length == 0 || _cardAffiliateAddresses.length == tokenUris.length
check increateMarket
instead of silently skipping card affiliate cuts inMarket.initialize
.This would restrict the
_cardAffiliateAddresses
length to thenftMintingLimit
as well.The text was updated successfully, but these errors were encountered: